Permalink
Browse files

fix for rbx

Rubinius returns a boolean after such assingment
response = (_, headers, body = @app.call(env))

see rubinius/rubinius#2117

get rid of a local variable
  • Loading branch information...
1 parent 85afc11 commit 8f18550b0acbcdc918bbfbf8c8f2f7521cbac0d5 @tank-bohr tank-bohr committed with Alexey Nikitin Jan 6, 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
- response = (_, headers, body = @app.call(env))
+ status, headers, body = @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) : response
+ exception ? render_exception(env, exception) : [status, headers, body]
end
private

0 comments on commit 8f18550

Please sign in to comment.