demarches-normaliennes/app/models/champs/checkbox_champ.rb

7 lines
112 B
Ruby

class Champs::CheckboxChamp < Champ
def search_terms
if value == 'on'
[ libelle ]
end
end
end