Permalink
Browse files

More documentation for ActionDispatch::Response

[ci skip]
  • Loading branch information...
MattStopa committed Jan 16, 2013
1 parent 7b1a58b commit 0004ca3a9725b5c89b671d6f5bcfb245a5800af7
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_dispatch/http/response.rb
@@ -172,7 +172,8 @@ def to_path
stream.to_path
end
- # Returns the content of the response as a String.
+ # Returns the content of the response as a String. This contains the contents
+ # of any calls to <tt>render</tt>.
def body
strings = []
each { |part| strings << part.to_s }
@@ -181,6 +182,7 @@ def body
EMPTY = " "
+ # Allows you to set manually set or override the response body.
def body=(body)
@blank = true if body == EMPTY

0 comments on commit 0004ca3

Please sign in to comment.