module Shrine::Plugins::Mirroring::InstanceMethods

  1. lib/shrine/plugins/mirroring.rb

Methods

Public Instance

  1. upload

Public Instance methods

upload(io, mirror: true, **options)

Mirrors upload to other mirror storages.

[show source]
   # File lib/shrine/plugins/mirroring.rb
54 def upload(io, mirror: true, **options)
55   file = super(io, **options)
56   file.trigger_mirror_upload(**options) if mirror
57   file
58 end