module Shrine::Plugins::MultiCache::AttacherMethods

Public Instance Methods

cached?(file = self.file) click to toggle source
Calls superclass method
# File lib/shrine/plugins/multi_cache.rb, line 13
def cached?(file = self.file)
  super || additional_cache.any? { |key| uploaded?(file, key) }
end

Private Instance Methods

additional_cache() click to toggle source
# File lib/shrine/plugins/multi_cache.rb, line 19
def additional_cache
  Array(shrine_class.opts[:multi_cache][:additional_cache])
end