module Shrine::Plugins::Versions

  1. lib/shrine/plugins/versions.rb

Documentation can be found on shrinerb.com/docs/plugins/versions

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure(uploader, **opts)
[show source]
   # File lib/shrine/plugins/versions.rb
14 def self.configure(uploader, **opts)
15   uploader.opts[:versions] ||= { fallbacks: {}, fallback_to_original: true }
16   uploader.opts[:versions].merge!(opts)
17 end
load_dependencies(uploader, **)
[show source]
   # File lib/shrine/plugins/versions.rb
 9 def self.load_dependencies(uploader, **)
10   uploader.plugin :processing
11   uploader.plugin :default_url
12 end