Skip to content
This repository
Browse code

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...
commit 8f18550b0acbcdc918bbfbf8c8f2f7521cbac0d5 1 parent 85afc11
Alexey Nikitin authored January 07, 2013 Alexey Nikitin committed January 07, 2013
4  actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -15,7 +15,7 @@ def initialize(app, routes_app = nil)
15 15
 
16 16
     def call(env)
17 17
       begin
18  
-        response = (_, headers, body = @app.call(env))
  18
+        status, headers, body = @app.call(env)
19 19
 
20 20
         if headers['X-Cascade'] == 'pass'
21 21
           body.close if body.respond_to?(:close)
@@ -25,7 +25,7 @@ def call(env)
25 25
         raise exception if env['action_dispatch.show_exceptions'] == false
26 26
       end
27 27
 
28  
-      exception ? render_exception(env, exception) : response
  28
+      exception ? render_exception(env, exception) : [status, headers, body]
29 29
     end
30 30
 
31 31
     private

0 notes on commit 8f18550

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