Skip to content

Commit

Permalink
weird frozen_string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSim committed Sep 26, 2024
1 parent ca561c2 commit 010cda2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/types_de_champ/yes_no_type_de_champ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ def filter_to_human(filter_value)
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

Expand Down

0 comments on commit 010cda2

Please sign in to comment.