module Shrine::Plugins::RackFile::ClassMethods

  1. lib/shrine/plugins/rack_file.rb

Methods

Public Instance

  1. rack_file

Public Instance methods

rack_file (hash)

Accepts a Rack uploaded file hash and wraps it in an IO object.

[show source]
# File lib/shrine/plugins/rack_file.rb, line 47
def rack_file(hash)
  UploadedFile.new(hash)
end