aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortank-bohr <tank_bohr@mail.ru>2013-01-07 03:37:06 +0400
committertank-bohr <tank_bohr@mail.ru>2013-01-07 03:37:06 +0400
commitf3101fd0fcfc2b67478ca5c968d5d5394d13ff5f (patch)
treeca47ba617bc29d8c853e8dab36bd622f81d0ec18
parent813e4cc14233d8c87b6b7165592c48998af48072 (diff)
downloadrails-f3101fd0fcfc2b67478ca5c968d5d5394d13ff5f.tar.gz
rails-f3101fd0fcfc2b67478ca5c968d5d5394d13ff5f.tar.bz2
rails-f3101fd0fcfc2b67478ca5c968d5d5394d13ff5f.zip
return multiple assingment and response variable
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_exceptions.rb4
1 files 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 3f1cf14825..91ef3ef9ce 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
- 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 @@ module ActionDispatch
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