module Shrine::Plugins::DynamicStorage::ClassMethods

  1. lib/shrine/plugins/dynamic_storage.rb

Methods

Public Instance

  1. dynamic_storages
  2. find_storage
  3. storage

Public Instance methods

dynamic_storages ()
[show source]
# File lib/shrine/plugins/dynamic_storage.rb, line 22
def dynamic_storages
  @dynamic_storages ||= {}
end
find_storage (name)
[show source]
# File lib/shrine/plugins/dynamic_storage.rb, line 30
def find_storage(name)
  resolve_dynamic_storage(name) or super
end
storage (regex, &block)
[show source]
# File lib/shrine/plugins/dynamic_storage.rb, line 26
def storage(regex, &block)
  dynamic_storages[regex] = block
end