Module: Shrine::Plugins::RackResponse::FileMethods

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

Instance Method Summary collapse

Instance Method Details

#to_rack_response(**options) ⇒ Object

Returns a Rack response triple for the uploaded file.


13
14
15
# File 'lib/shrine/plugins/rack_response.rb', line 13

def to_rack_response(**options)
  FileResponse.new(self).call(**options)
end