method
create!
v2.3.8 -
Show latest stable
-
0 notes -
Class: ActiveRecord::Associations::HasManyThroughAssociation
create!(attrs = nil)
public
Hide source
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 6 def create!(attrs = nil) transaction do self << (object = attrs ? @reflection.klass.send(:with_scope, :create => attrs) { @reflection.create_association! } : @reflection.create_association!) object end end