Sha256: 5521b6a8eedf152ade6b8a9de906ad86dd314a087627ee9d8e746567349f4cbf

Contents?: true

Size: 229 Bytes

Versions: 4

Compression:

Stored size: 229 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-collection_cache_key-0.1.3 lib/collection_cache_key/relation.rb
activerecord-collection_cache_key-0.1.2 lib/collection_cache_key/relation.rb
activerecord-collection_cache_key-0.1.1 lib/collection_cache_key/relation.rb
activerecord-collection_cache_key-0.1.0 lib/collection_cache_key/relation.rb