Module: CollectionCacheKey::Relation

Defined in:
lib/collection_cache_key/relation.rb

Instance Method Summary collapse

Instance Method Details

#cache_key(timestamp_column = :updated_at) ⇒ Object



3
4
5
6
# File 'lib/collection_cache_key/relation.rb', line 3

def cache_key(timestamp_column = :updated_at)
  @cache_keys ||= {}
  @cache_keys[timestamp_column] ||= @klass.collection_cache_key(self, timestamp_column)
end