123456789_123456789_123456789_123456789_123456789_

Module: ActionText::Attachments::Caching

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: actiontext/lib/action_text/attachments/caching.rb

Instance Method Summary

Instance Method Details

#cache_digest (private)

[ GitHub ]

  
# File 'actiontext/lib/action_text/attachments/caching.rb', line 13

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

#cache_key(*args)

[ GitHub ]

  
# File 'actiontext/lib/action_text/attachments/caching.rb', line 8

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