From 0004ca3a9725b5c89b671d6f5bcfb245a5800af7 Mon Sep 17 00:00:00 2001 From: Matthew Stopa Date: Wed, 16 Jan 2013 00:48:13 -0700 Subject: [PATCH] More documentation for ActionDispatch::Response [ci skip] --- actionpack/lib/action_dispatch/http/response.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index 87603190017c8..15ccfa273552a 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/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 render. 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