weird frozen_string bug

This commit is contained in:
simon lehericey 2024-09-25 17:55:11 +02:00
parent a418cf6632
commit d5a722c143
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -12,13 +12,13 @@ class TypesDeChamp::YesNoTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
end
def human_to_filter(human_value)
human_value.downcase!
if human_value == "oui"
downcased = human_value.downcase
if downcased == "oui"
"true"
elsif human_value == "non"
elsif downcased == "non"
"false"
else
human_value
downcased
end
end