Sha256: a50bbef524fef6b1207f176ce4c6f94d4180854062d3f533cd342503a0d4f064

Contents?: true

Size: 322 Bytes

Versions: 77

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module ActionText
  module Attachments
    module Caching
      def cache_key(*args)
        [self.class.name, cache_digest, *attachable.cache_key(*args)].join("/")
      end

      private
        def cache_digest
          Digest::SHA256.hexdigest(node.to_s)
        end
    end
  end
end

Version data entries

77 entries across 77 versions & 8 rubygems

Version Path
actiontext-6.1.7.10 lib/action_text/attachments/caching.rb
actiontext-6.1.7.9 lib/action_text/attachments/caching.rb
actiontext-6.1.7.8 lib/action_text/attachments/caching.rb
actiontext-6.1.7.7 lib/action_text/attachments/caching.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/attachments/caching.rb
actiontext-6.1.7.6 lib/action_text/attachments/caching.rb
actiontext-6.1.7.5 lib/action_text/attachments/caching.rb
actiontext-6.1.7.4 lib/action_text/attachments/caching.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/attachments/caching.rb
actiontext-6.1.7.3 lib/action_text/attachments/caching.rb
actiontext-6.1.7.2 lib/action_text/attachments/caching.rb
actiontext-6.1.7.1 lib/action_text/attachments/caching.rb
actiontext-6.0.6.1 lib/action_text/attachments/caching.rb
actiontext-6.1.7 lib/action_text/attachments/caching.rb
actiontext-6.0.6 lib/action_text/attachments/caching.rb
actiontext-6.1.6.1 lib/action_text/attachments/caching.rb
actiontext-6.0.5.1 lib/action_text/attachments/caching.rb
actiontext5-5.2.0 lib/action_text/attachments/caching.rb
actiontext-6.0.5 lib/action_text/attachments/caching.rb
actiontext-6.1.6 lib/action_text/attachments/caching.rb