demarches-normaliennes/app/models/rna_information.rb
2018-03-06 17:18:44 +01:00

9 lines
216 B
Ruby

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