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

7 lines
130 B
Ruby

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