demarches-normaliennes/app/helpers/champ_helper.rb
2018-06-18 18:12:11 +02:00

6 lines
165 B
Ruby

module ChampHelper
def has_label?(champ)
types_without_label = ['header_section', 'explication']
!types_without_label.include?(champ.type_champ)
end
end