module ActionMosaico::Attachments::Caching

Public Instance Methods

cache_key(*args) click to toggle source
# File lib/action_mosaico/attachments/caching.rb, line 6
def cache_key(*args)
  [self.class.name, cache_digest, *attachable.cache_key(*args)].join('/')
end

Private Instance Methods

cache_digest() click to toggle source
# File lib/action_mosaico/attachments/caching.rb, line 12
def cache_digest
  OpenSSL::Digest::SHA256.hexdigest(node.to_s)
end