mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
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:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user