demarches-normaliennes/app/helpers/champ_helper.rb

7 lines
165 B
Ruby
Raw Normal View History

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