Ensure that render_text only adds string content to the body of the response [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 178880ef
*SVN*
* Ensure that render_text only adds string content to the body of the response [DHH]
* Return the string representation from an Xml Builder when rendering a partial. Closes #5044 [tpope]
* Fixed that parameters from XML should also be presented in a hash with indifferent access [DHH]
......
......@@ -867,9 +867,9 @@ def render_text(text = nil, status = nil, append_response = false) #:nodoc:
if append_response
response.body ||= ''
response.body << text
response.body << text.to_s
else
response.body = text
response.body = text.to_s
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册