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
This commit is contained in:
David Heinemeier Hansson
2007-04-21 14:15:59 +00:00
parent 178880ef7c
commit 1574145185
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
*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]

View File

@@ -867,9 +867,9 @@ module ActionController #: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