demarches-normaliennes/app/models/champ.rb

11 lines
205 B
Ruby
Raw Normal View History

class Champ < ActiveRecord::Base
2015-11-03 10:48:40 +01:00
belongs_to :dossier
2015-11-05 11:21:44 +01:00
belongs_to :type_de_champ
delegate :libelle, :type_champ, :order_place, :mandatory, to: :type_de_champ
def mandatory?
mandatory
end
2015-11-03 10:48:40 +01:00
end