aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-17 13:10:23 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-17 13:10:23 +0000
commit96cca7db6dd2022d74fd94eb532ceacc8913b57b (patch)
tree98f4ba262dc540b405542dd430d55b9a17a6ae91 /actionpack/lib/action_view/helpers/text_helper.rb
parent495f113e57c5b5db883c9a395aa80f8ccfc171bf (diff)
downloadrails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.tar.gz
rails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.tar.bz2
rails-96cca7db6dd2022d74fd94eb532ceacc8913b57b.zip
ActionView::Base.erb_variable accessor names the buffer variable used to render templates. Defaults to _erbout; use _buf for erubis.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index c5b757d6e1..8f956133b7 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -23,7 +23,7 @@ module ActionView
# is equivalent to using:
# <%= "hello" %>
def concat(string, binding)
- eval("_erbout", binding).concat(string)
+ eval(ActionView::Base.erb_variable, binding) << string
end
# If +text+ is longer than +length+, +text+ will be truncated to the length of