From 15741451855c80f775c0237cc9bcacf55666e136 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Apr 2007 14:15:59 +0000 Subject: 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 --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/base.rb') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 8e01af406c..1892bc7231 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -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 -- cgit v1.2.3