lib/grape/middleware/base.rb in grape-0.6.0 vs lib/grape/middleware/base.rb in grape-0.6.1
- old
+ new
@@ -32,10 +32,10 @@
# Called after the application is called in the middleware lifecycle.
# @return [Response, nil] a Rack SPEC response or nil to call the application afterwards.
def after; end
def request
- Grape::Request.new(self.env)
+ Grape::Request.new(env)
end
def response
Rack::Response.new(@app_response)
end