method
update_counter
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyAssociation
update_counter(difference, reflection = reflection())private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_association.rb, line 90
def update_counter(difference, reflection = reflection())
if reflection.has_cached_counter?
owner.increment!(reflection.counter_cache_column, difference)
end
end