module Shrine::Plugins::Mirroring

  1. lib/shrine/plugins/mirroring.rb

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

Methods

Public Class

  1. configure

Public Class methods

configure(uploader, **opts)
[show source]
   # File lib/shrine/plugins/mirroring.rb
 7 def self.configure(uploader, **opts)
 8   uploader.opts[:mirroring] ||= { upload: true, delete: true }
 9   uploader.opts[:mirroring].merge!(opts)
10 
11   fail Error, ":mirror option is required for mirroring plugin" unless uploader.opts[:mirroring][:mirror]
12 end