diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-02-03 01:11:42 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-02-03 01:11:42 +0000 |
commit | 780151c01e7e2d953f2701c2b931a1b33e4b88ca (patch) | |
tree | 4dd3dc7f195030ce3bacadda94945b98e13f7367 /actionpack/lib/action_view/helpers | |
parent | 78253acb599102528498d2257a37361a39f850f7 (diff) | |
download | rails-780151c01e7e2d953f2701c2b931a1b33e4b88ca.tar.gz rails-780151c01e7e2d953f2701c2b931a1b33e4b88ca.tar.bz2 rails-780151c01e7e2d953f2701c2b931a1b33e4b88ca.zip |
Fix missing extension for caching. Closes #10733 [Catfish, tcoppock, mpalmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8791 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/cache_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb index aa85b9fb40..c2aab5aa72 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -32,8 +32,7 @@ module ActionView # <i>Topics listed alphabetically</i> # <% end %> def cache(name = {}, options = nil, &block) - template_extension = @finder.pick_template_extension(first_render)[/\.?(\w+)$/, 1].to_sym - handler = Base.handler_class_for_extension(template_extension) + handler = Base.handler_class_for_extension(current_render_extension.to_sym) handler.new(@controller).cache_fragment(block, name, options) end end |