method
insert_record
insert_record(record, validate = true, raise = false)
public
Hide source
# File activerecord/lib/active_record/associations/has_many_association.rb, line 33 def insert_record(record, validate = true, raise = false) set_owner_attributes(record) set_inverse_instance(record) if raise record.save!(:validate => validate) else record.save(:validate => validate) end end