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