Documentation can be found on shrinerb.com/docs/plugins/mirroring
Classes and Modules
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