method

update_counter

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