lib/mongoid/association/relatable.rb
# Get the counter cache column name.
#
# @return [ String ] The counter cache column name.
Get the counter cache column name.
Get the counter cache column name .
def counter_cache_column_name
        @counter_cache_column_name ||= (@options[:counter_cache].is_a?(String) ||
            @options[:counter_cache].is_a?(Symbol)) ?
            @options[:counter_cache] : "#{inverse || inverse_class_name.demodulize.underscore.pluralize}_count"
      end
def counter_cache_column_name @counter_cache_column_name ||= ( @options [ :counter_cache ] . is_a? ( String ) || @options [ :counter_cache ] . is_a? ( Symbol ) ) ? @options [ :counter_cache ] : "#{inverse || inverse_class_name.demodulize.underscore.pluralize}_count" end
Get the counter cache column name.
Get the counter cache column name .
The counter cache column name.
The counter cache column name .
 String 