diff options
author | Matthew Stopa <matthew.p.stopa@gmail.com> | 2013-01-16 00:48:13 -0700 |
---|---|---|
committer | Matthew Stopa <matthew.p.stopa@gmail.com> | 2013-01-16 00:48:25 -0700 |
commit | 0004ca3a9725b5c89b671d6f5bcfb245a5800af7 (patch) | |
tree | 4b21551630192a2fd0263a35f01edf3fc8d7dfe7 /actionpack | |
parent | 7b1a58bbae4a479f947087165a3867aea576a53d (diff) | |
download | rails-0004ca3a9725b5c89b671d6f5bcfb245a5800af7.tar.gz rails-0004ca3a9725b5c89b671d6f5bcfb245a5800af7.tar.bz2 rails-0004ca3a9725b5c89b671d6f5bcfb245a5800af7.zip |
More documentation for ActionDispatch::Response
[ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index 8760319001..15ccfa2735 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -172,7 +172,8 @@ module ActionDispatch # :nodoc: 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 @@ module ActionDispatch # :nodoc: EMPTY = " " + # Allows you to set manually set or override the response body. def body=(body) @blank = true if body == EMPTY |