module Shrine::Plugins::DefaultStorage::AttacherClassMethods

  1. lib/shrine/plugins/default_storage.rb

Methods

Public Instance

  1. default_cache
  2. default_store

Public Instance methods

default_cache(value = nil, &block)
[show source]
   # File lib/shrine/plugins/default_storage.rb
13 def default_cache(value = nil, &block)
14   default_storage.merge!(cache: value || block)
15 end
default_store(value = nil, &block)
[show source]
   # File lib/shrine/plugins/default_storage.rb
17 def default_store(value = nil, &block)
18   default_storage.merge!(store: value || block)
19 end