demarches-normaliennes/app/models/champs/siret_champ.rb
2019-03-19 16:22:42 +01:00

5 lines
128 B
Ruby

class Champs::SiretChamp < Champ
def search_terms
etablissement.present? ? etablissement.search_terms : [value]
end
end