aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorMatthew Stopa <matthew.p.stopa@gmail.com>2013-01-16 00:33:08 -0700
committerMatthew Stopa <matthew.p.stopa@gmail.com>2013-01-16 00:33:08 -0700
commit7b1a58bbae4a479f947087165a3867aea576a53d (patch)
tree1a5426a43fab0afc9fb3d725af5942a20d40bd0f /actionpack/lib/action_dispatch/http
parent3daa8e51ccebd8563926cd5ddb17dbb4156be9cb (diff)
downloadrails-7b1a58bbae4a479f947087165a3867aea576a53d.tar.gz
rails-7b1a58bbae4a479f947087165a3867aea576a53d.tar.bz2
rails-7b1a58bbae4a479f947087165a3867aea576a53d.zip
Document ActionDispatch::Response#body method
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/response.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb
index 91cf4784db..8760319001 100644
--- a/actionpack/lib/action_dispatch/http/response.rb
+++ b/actionpack/lib/action_dispatch/http/response.rb
@@ -172,6 +172,7 @@ module ActionDispatch # :nodoc:
stream.to_path
end
+ # Returns the content of the response as a String.
def body
strings = []
each { |part| strings << part.to_s }