Module: Shrine::Plugins::Mirroring::InstanceMethods

Defined in:
lib/shrine/plugins/mirroring.rb

Instance Method Summary collapse

Instance Method Details

#upload(io, mirror: true, **options) ⇒ Object

Mirrors upload to other mirror storages.


54
55
56
57
58
# File 'lib/shrine/plugins/mirroring.rb', line 54

def upload(io, mirror: true, **options)
  file = super(io, **options)
  file.trigger_mirror_upload(**options) if mirror
  file
end