method
_create_record
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::CounterCache
_create_record(*)private
No documentation available.
# File activerecord/lib/active_record/counter_cache.rb, line 183
def _create_record(*)
id = super
each_counter_cached_associations do |association|
if send(association.reflection.name)
association.increment_counters
end
end
id
end