module Shrine::Plugins::FallbackStorage::FileMethods
Public Class Methods
Source
# File lib/shrine/plugins/fallback_storage.rb 15 def self.included(base) 16 base.class_eval do 17 alias_method :storage_exists?, :exists? 18 19 def exists? 20 super || fallback_storage.exists?(id) 21 end 22 end 23 end
Public Instance Methods
Source
# File lib/shrine/plugins/fallback_storage.rb 25 def url(**) 26 if storage_exists? 27 super 28 else 29 fallback_storage.url(id, **) 30 end 31 end
Calls superclass method