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:
parent
7b1a58bbae
commit
0004ca3a97
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue