module Shrine::Plugins::RackFile::InstanceMethods

  1. lib/shrine/plugins/rack_file.rb

Methods

Public Instance

  1. store
  2. upload

Public Instance methods

store (io, context = {})

If io is a Rack uploaded file hash, converts it to an IO-like object and calls super.

[show source]
# File lib/shrine/plugins/rack_file.rb, line 61
def store(io, context = {})
  super(convert_rack_file(io), context)
end
upload (io, context = {})

If io is a Rack uploaded file hash, converts it to an IO-like object and calls super.

[show source]
# File lib/shrine/plugins/rack_file.rb, line 55
def upload(io, context = {})
  super(convert_rack_file(io), context)
end