Skip to content
This repository

masgn and response variable #8787

Merged
merged 1 commit into from over 1 year ago

2 participants

Alexey Nikitin Rafael Mendonça França
Rafael Mendonça França rafaelfranca merged commit dc4b4c4 into from January 06, 2013
Rafael Mendonça França rafaelfranca closed this January 06, 2013
Alexey Nikitin

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 07, 2013
Alexey Nikitin return multiple assingment and response variable f3101fd
This page is out of date. Refresh to see the latest.
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  
-        status, headers, body = @app.call(env)
  18
+        _, headers, body = response = @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) : [status, headers, body]
  28
+      exception ? render_exception(env, exception) : response
29 29
     end
30 30
 
31 31
     private
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.