提交 0004ca3a 编写于 作者: M Matthew Stopa

More documentation for ActionDispatch::Response

[ci skip]
上级 7b1a58bb
...@@ -172,7 +172,8 @@ def to_path ...@@ -172,7 +172,8 @@ def to_path
stream.to_path stream.to_path
end 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 def body
strings = [] strings = []
each { |part| strings << part.to_s } each { |part| strings << part.to_s }
...@@ -181,6 +182,7 @@ def body ...@@ -181,6 +182,7 @@ def body
EMPTY = " " EMPTY = " "
# Allows you to set manually set or override the response body.
def body=(body) def body=(body)
@blank = true if body == EMPTY @blank = true if body == EMPTY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册