diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index 87603190017c86ca9fd25dda0b804951d5af6dad..15ccfa273552a93efaa1f4a951d3cbfeac1564d9 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