From 7b1a58bbae4a479f947087165a3867aea576a53d Mon Sep 17 00:00:00 2001 From: Matthew Stopa Date: Wed, 16 Jan 2013 00:33:08 -0700 Subject: [PATCH] Document ActionDispatch::Response#body method --- actionpack/lib/action_dispatch/http/response.rb | 1 + 1 file changed, 1 insertion(+) 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 }