method
_create_record
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyAssociation
_create_record(attributes, *)private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_association.rb, line 117
def _create_record(attributes, *)
if attributes.is_a?(Array)
super
else
update_counter_if_success(super, 1)
end
end