Class: Rack::Upload
- Inherits:
-
Object
- Object
- Rack::Upload
- Defined in:
- lib/rambo/middleware/upload.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Upload
constructor
A new instance of Upload.
Constructor Details
#initialize(app) ⇒ Upload
Returns a new instance of Upload.
3 4 5 |
# File 'lib/rambo/middleware/upload.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rambo/middleware/upload.rb', line 7 def call(env) request = Rack::Request.new(env) #puts "UPLOAD SAYS HELLO" @app.call(env) end |