diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/cache_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/cache_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb index ca5a746c26..530e38e81c 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -1,8 +1,9 @@ module ActionView module Helpers + # See ActionController::Caching::Fragments for usage instructions. module CacheHelper def cache(binding, name, key = nil) - @controller.cache_fragment(binding, name, key) { yield } + @controller.cache_erb_fragment(binding, name, key) { yield } end end end |