method
insert_record
insert_record(record, force = false, validate = true)
protected
Hide source
# File activerecord/lib/active_record/associations/has_many_association.rb, line 59 def insert_record(record, force = false, validate = true) set_belongs_to_association_for(record) force ? record.save! : record.save(validate) end