Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

masgn and response variable #8787

Merged
merged 1 commit into from Jan 7, 2013
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -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