Module: Shrine::Plugins::Mirroring::InstanceMethods
- Defined in:
- lib/shrine/plugins/mirroring.rb
Instance Method Summary collapse
-
#upload(io, mirror: true, **options) ⇒ Object
Mirrors upload to other mirror storages.
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, **) file = super(io, **) file.trigger_mirror_upload if mirror file end |