Sha256: 24a025cdff68afd74b815a110c792066f2e5235c76dd7ce005438b08c9472abe
Contents?: true
Size: 337 Bytes
Versions: 4
Compression:
Stored size: 337 Bytes
Contents
module GreyscaleRecord module Cacheable extend ActiveSupport::Concern included do class << self def cache_key @cache_key ||= Digest::SHA256.hexdigest(all.to_json) end end def cache_key @cache_key ||= Digest::SHA256.hexdigest(@attributes.to_json) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems