Permalink
Browse files

Merge pull request #8787 from tank-bohr/master

masgn and response variable
  • Loading branch information...
2 parents fb7c093 + f3101fd commit dc4b4c46ef531255276ac6a66cfee5ee03126a9c @rafaelfranca rafaelfranca committed Jan 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -15,7 +15,7 @@ def initialize(app, routes_app = nil)
def call(env)
begin
- status, headers, body = @app.call(env)
+ _, headers, body = response = @app.call(env)
if headers['X-Cascade'] == 'pass'
body.close if body.respond_to?(:close)
@@ -25,7 +25,7 @@ def call(env)
raise exception if env['action_dispatch.show_exceptions'] == false
end
- exception ? render_exception(env, exception) : [status, headers, body]
+ exception ? render_exception(env, exception) : response
end
private

0 comments on commit dc4b4c4

Please sign in to comment.