From eff27ab11962aa90885653438d0d04d3136fd846 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 12 Jan 2008 01:19:46 +0000 Subject: Fix a few caching errors, expose a case thats still not working (ref #107330 [catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/cache_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb index 059f2edf0f..ea505adfa7 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -32,8 +32,8 @@ module ActionView # Topics listed alphabetically # <% end %> def cache(name = {}, options = nil, &block) - template_extension = find_template_extension_for(first_render)[/\.(\w+)$/, 1].to_sym - handler = Base.handler_for_extension(template_extension) + 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 end -- cgit v1.2.3