From 88bc014acc82129e55a7ae7505cb62bacd0d685d Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 19 Jan 2008 06:01:57 +0000 Subject: Revert r8669 for now, breaks Action Mailer. Reopens #10800. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/cache_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/helpers/cache_helper.rb') diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb index aa85b9fb40..ea505adfa7 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -32,7 +32,7 @@ module ActionView # Topics listed alphabetically # <% end %> def cache(name = {}, options = nil, &block) - template_extension = @finder.pick_template_extension(first_render)[/\.?(\w+)$/, 1].to_sym + template_extension = find_template_extension_for(first_render)[/\.?(\w+)$/, 1].to_sym handler = Base.handler_class_for_extension(template_extension) handler.new(@controller).cache_fragment(block, name, options) end -- cgit v1.2.3