Module: Shrine::Plugins::DefaultStorage::AttacherClassMethods

Defined in:
lib/shrine/plugins/default_storage.rb

Instance Method Summary collapse

Instance Method Details

#default_cache(value = nil, &block) ⇒ Object


13
14
15
# File 'lib/shrine/plugins/default_storage.rb', line 13

def default_cache(value = nil, &block)
  default_storage.merge!(cache: value || block)
end

#default_store(value = nil, &block) ⇒ Object


17
18
19
# File 'lib/shrine/plugins/default_storage.rb', line 17

def default_store(value = nil, &block)
  default_storage.merge!(store: value || block)
end