method

with_cache_name

rails latest stable - Class: ActiveRecord::Associations::BelongsToAssociation

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

with_cache_name()
private

No documentation available.

# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 48
        def with_cache_name
          counter_cache_name = reflection.counter_cache_column
          return unless counter_cache_name && owner.persisted?
          yield counter_cache_name
        end