aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/cache_helper.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-01-19 03:20:39 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-01-19 03:20:39 +0000
commit84b0f9c739ffb82f3b8e0571c400014c34d0e369 (patch)
treecae7ff7cf03695f0ad9483a933a097e5c898d5b2 /actionpack/lib/action_view/helpers/cache_helper.rb
parent4a644575c83d78e751f49cb6ba47e1c98af693a8 (diff)
downloadrails-84b0f9c739ffb82f3b8e0571c400014c34d0e369.tar.gz
rails-84b0f9c739ffb82f3b8e0571c400014c34d0e369.tar.bz2
rails-84b0f9c739ffb82f3b8e0571c400014c34d0e369.zip
Introduce TemplateFinder to handle view paths and lookups. Closes #10800.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/cache_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/cache_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb
index ea505adfa7..aa85b9fb40 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
# <i>Topics listed alphabetically</i>
# <% end %>
def cache(name = {}, options = nil, &block)
- template_extension = find_template_extension_for(first_render)[/\.?(\w+)$/, 1].to_sym
+ template_extension = @finder.pick_template_extension(first_render)[/\.?(\w+)$/, 1].to_sym
handler = Base.handler_class_for_extension(template_extension)
handler.new(@controller).cache_fragment(block, name, options)
end