diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-01-12 01:19:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-01-12 01:19:46 +0000 |
commit | eff27ab11962aa90885653438d0d04d3136fd846 (patch) | |
tree | 511e36e849b11e41b0b5436c363426fc2e4fc073 /actionpack/lib | |
parent | 3dd6027f708a472064e73a50f4afb433f338bf09 (diff) | |
download | rails-eff27ab11962aa90885653438d0d04d3136fd846.tar.gz rails-eff27ab11962aa90885653438d0d04d3136fd846.tar.bz2 rails-eff27ab11962aa90885653438d0d04d3136fd846.zip |
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/cache_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 # <i>Topics listed alphabetically</i> # <% 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 |