Skip to content
Browse files

return multiple assingment and response variable

  • Loading branch information...
1 parent 813e4cc commit f3101fd0fcfc2b67478ca5c968d5d5394d13ff5f @tank-bohr tank-bohr committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
View
4 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 f3101fd

Please sign in to comment.
Something went wrong with that request. Please try again.