weird frozen_string bug
This commit is contained in:
parent
a418cf6632
commit
d5a722c143
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue