From 96cca7db6dd2022d74fd94eb532ceacc8913b57b Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 17 Nov 2006 13:10:23 +0000 Subject: 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 --- actionpack/lib/action_controller/caching.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index bf1a94591e..28dc45139a 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -330,7 +330,7 @@ module ActionController #:nodoc: def cache_erb_fragment(block, name = {}, options = nil) unless perform_caching then block.call; return end - buffer = eval("_erbout", block.binding) + buffer = eval(ActionView::Base.erb_variable, block.binding) if cache = read_fragment(name, options) buffer.concat(cache) -- cgit v1.2.3