method
insert_record
v6.1.7.7 -
Show latest stable
-
0 notes -
Class: ActiveRecord::Associations::HasManyThroughAssociation
insert_record(record, validate = true, raise = false)
public
Hide source
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 24 def insert_record(record, validate = true, raise = false) ensure_not_nested if record.new_record? || record.has_changes_to_save? return unless super end save_through_record(record) record end