Module: Shrine::Plugins::Processing::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

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


21
22
23
24
25
26
27
28
29
# File 'lib/shrine/plugins/processing.rb', line 21

def upload(io, process: true, **options)
  if process
    input = process(io, **options)
  else
    input = io
  end

  super(input, **options)
end