module Shrine::Plugins::KitheMultiCache::AttacherMethods
override cache to lazily extend with our custom module. Kinda hacky, but couldn't think of any other way to only extend the “cache” uploader, and not the “store” uploader.
Public Instance Methods
cached?(file = self.file)
click to toggle source
Calls superclass method
# File lib/shrine/plugins/kithe_multi_cache.rb, line 36 def cached?(file = self.file) super || (file && shrine_class.opts[:kithe_multi_cache_keys].include?(file.storage_key.to_sym)) end