module Shrine::Plugins::DefaultUrl

  1. lib/shrine/plugins/default_url.rb

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

Methods

Public Class

  1. configure

Public Class methods

configure (uploader, &block)
[show source]
   # File lib/shrine/plugins/default_url.rb
 9 def self.configure(uploader, &block)
10   if block
11     uploader.opts[:default_url] = block
12     Shrine.deprecation("Passing a block to default_url plugin is deprecated and will probably be removed in future versions of Shrine. Use `Attacher.default_url { ... }` instead.")
13   end
14 end