Module: Shrine::Plugins::RackFile::InstanceMethods
- Defined in:
- lib/shrine/plugins/rack_file.rb
Instance Method Summary collapse
-
#store(io, context = {}) ⇒ Object
If ‘io` is a Rack uploaded file hash, converts it to an IO-like object and calls `super`.
-
#upload(io, context = {}) ⇒ Object
If ‘io` is a Rack uploaded file hash, converts it to an IO-like object and calls `super`.
Instance Method Details
#store(io, context = {}) ⇒ Object
If ‘io` is a Rack uploaded file hash, converts it to an IO-like object and calls `super`.
35 36 37 |
# File 'lib/shrine/plugins/rack_file.rb', line 35 def store(io, context = {}) super(convert_rack_file(io), context) end |
#upload(io, context = {}) ⇒ Object
If ‘io` is a Rack uploaded file hash, converts it to an IO-like object and calls `super`.
29 30 31 |
# File 'lib/shrine/plugins/rack_file.rb', line 29 def upload(io, context = {}) super(convert_rack_file(io), context) end |