From 8f18550b0acbcdc918bbfbf8c8f2f7521cbac0d5 Mon Sep 17 00:00:00 2001 From: tank-bohr Date: Mon, 7 Jan 2013 01:19:06 +0400 Subject: fix for rbx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rubinius returns a boolean after such assingment response = (_, headers, body = @app.call(env)) see https://github.com/rubinius/rubinius/issues/2117 get rid of a local variable --- actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index 6bc5876b6c..3f1cf14825 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -15,7 +15,7 @@ module ActionDispatch 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 @@ module ActionDispatch 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 -- cgit v1.2.3