mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Stringify rendered text unless it's a Proc object for streaming.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
38d574c6a3
commit
339a58a266
1 changed files with 1 additions and 1 deletions
|
@ -869,7 +869,7 @@ module ActionController #:nodoc:
|
|||
response.body ||= ''
|
||||
response.body << text.to_s
|
||||
else
|
||||
response.body = text.to_s
|
||||
response.body = text.is_a?(Proc) ? text : text.to_s
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue