demarches-normaliennes/app/models/rna_information.rb

10 lines
216 B
Ruby
Raw Normal View History

2018-03-06 13:44:29 +01:00
class RNAInformation < ApplicationRecord
2015-12-11 11:05:38 +01:00
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