aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-26 18:24:55 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-26 18:24:55 -0800
commitfaf3c2f827e786bc06ea143b80bb98c9a1e18304 (patch)
tree64587dc2f2946ca5fd29bb98db3f1fda8dc932c2 /actionpack
parent8689989a52fb673650c45322f060093678c6b91e (diff)
downloadrails-faf3c2f827e786bc06ea143b80bb98c9a1e18304.tar.gz
rails-faf3c2f827e786bc06ea143b80bb98c9a1e18304.tar.bz2
rails-faf3c2f827e786bc06ea143b80bb98c9a1e18304.zip
Set the body using the accessor for AD::Response introspection mode so it gets wrapped in a []
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index e6ed28742f..9cfe5a5ea9 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -43,7 +43,8 @@ module ActionDispatch # :nodoc:
@block = nil
@length = 0
- @status, @header, @body = status, header, body
+ @status, @header = status, header
+ self.body = body
@cookie = []
@sending_file = false