remove human_to_filter
This commit is contained in:
parent
b2754cd26c
commit
0a54db6db5
2 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue