Class: Rack::Upload

Inherits:
Object
  • Object
show all
Defined in:
lib/rambo/middleware/upload.rb

Instance Method Summary collapse

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