module Shrine::Plugins::DefaultStorage

  1. lib/shrine/plugins/default_storage.rb

Documentation lives in doc/plugins/default_storage.md on GitHub.

Methods

Public Class

  1. configure

Public Class methods

configure (uploader, opts = {})
[show source]
   # File lib/shrine/plugins/default_storage.rb
 9 def self.configure(uploader, opts = {})
10   uploader.opts[:default_storage_cache] = opts.fetch(:cache, uploader.opts[:default_storage_cache])
11   uploader.opts[:default_storage_store] = opts.fetch(:store, uploader.opts[:default_storage_store])
12 end