module Shrine::Plugins::DynamicStorage::ClassMethods

  1. lib/shrine/plugins/dynamic_storage.rb

Methods

Public Instance

  1. find_storage
  2. storage

Public Instance methods

find_storage(name)
[show source]
   # File lib/shrine/plugins/dynamic_storage.rb
16 def find_storage(name)
17   resolve_dynamic_storage(name) or super
18 end
storage(regex, &block)
[show source]
   # File lib/shrine/plugins/dynamic_storage.rb
12 def storage(regex, &block)
13   opts[:dynamic_storage][:resolvers][regex] = block
14 end