method
_create_record
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::CounterCache
_create_record(attribute_names = self.attribute_names)private
No documentation available.
# File activerecord/lib/active_record/counter_cache.rb, line 200
def _create_record(attribute_names = self.attribute_names)
id = super
counter_cached_association_names.each do |association_name|
association(association_name).increment_counters
end
id
end