Browse files

Set the body using the accessor for AD::Response introspection mode s…

…o it gets wrapped in a []
  • Loading branch information...
1 parent 8689989 commit faf3c2f827e786bc06ea143b80bb98c9a1e18304 Carlhuda committed Feb 26, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_dispatch/http/response.rb
View
3 actionpack/lib/action_dispatch/http/response.rb
@@ -43,7 +43,8 @@ def initialize(status = 200, header = {}, body = [])
@block = nil
@length = 0
- @status, @header, @body = status, header, body
+ @status, @header = status, header
+ self.body = body
@cookie = []
@sending_file = false

0 comments on commit faf3c2f

Please sign in to comment.