Module: Shrine::Plugins::MultiCache::AttacherMethods

Defined in:
lib/shrine/plugins/multi_cache.rb

Instance Method Summary collapse

Instance Method Details

#cached?(file = self.file) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/shrine/plugins/multi_cache.rb', line 13

def cached?(file = self.file)
  super || additional_cache.any? { |key| uploaded?(file, key) }
end