Permalink
Browse files

Ensure that render_text only adds string content to the body of the r…

…esponse [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Apr 21, 2007
1 parent 178880e commit 15741451855c80f775c0237cc9bcacf55666e136
Showing with 4 additions and 2 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +2 −2 actionpack/lib/action_controller/base.rb
View
@@ -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 @@ 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

0 comments on commit 1574145

Please sign in to comment.