demarches-normaliennes/app/models/rna_information.rb

10 lines
217 B
Ruby
Raw Normal View History

2015-12-11 11:05:38 +01:00
class RNAInformation < ActiveRecord::Base
belongs_to :entreprise
validates :association_id, presence: true, allow_blank: false, allow_nil: false
2018-02-21 16:29:22 +01:00
def rna=(id)
write_attribute(:association_id, id)
end
2015-12-11 11:05:38 +01:00
end