1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

More documentation for ActionDispatch::Response

[ci skip]
This commit is contained in:
Matthew Stopa 2013-01-16 00:48:13 -07:00
parent 7b1a58bbae
commit 0004ca3a97

View file

@ -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