method
save_through_record
rails latest stable - Class:
ActiveRecord::Associations::HasManyThroughAssociation
save_through_record(record)private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 81
def save_through_record(record)
association = build_through_record(record)
if association.changed?
association.save!
end
ensure
@through_records.delete(record)
end