remove human_to_filter

This commit is contained in:
simon lehericey 2024-10-07 15:09:21 +02:00
parent b2754cd26c
commit 0a54db6db5
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
2 changed files with 0 additions and 15 deletions

View file

@ -54,10 +54,6 @@ class TypesDeChamp::TypeDeChampBase
filter_value
end
def human_to_filter(human_value)
human_value
end
class << self
def champ_value(champ)
champ.value.present? ? champ.value.to_s : champ_default_value

View file

@ -11,17 +11,6 @@ class TypesDeChamp::YesNoTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
end
end
def human_to_filter(human_value)
downcased = human_value.downcase
if downcased == "oui"
"true"
elsif downcased == "non"
"false"
else
downcased
end
end
class << self
def champ_value(champ)
champ_formatted_value(champ)