Class: ActiveRecordExtensions::DetachedCounterCache::DetachedCounterCachePlaceholder

Inherits:
Object
  • Object
show all
Defined in:
lib/detached_counter_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#reflectionObject

Returns the value of attribute reflection.



82
83
84
# File 'lib/detached_counter_cache.rb', line 82

def reflection
  @reflection
end

Instance Method Details

#detached_counter_cache_table_nameObject



84
85
86
# File 'lib/detached_counter_cache.rb', line 84

def detached_counter_cache_table_name
  [reflection.klass.table_name, reflection.active_record.table_name, 'counts'].join('_')
end