demarches-normaliennes/app/models/rna_information.rb
2018-02-27 16:22:53 +01:00

9 lines
217 B
Ruby

class RNAInformation < ActiveRecord::Base
belongs_to :entreprise
validates :association_id, presence: true, allow_blank: false, allow_nil: false
def rna=(id)
write_attribute(:association_id, id)
end
end