diff options
-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 530e38e81c..b44b436ef4 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -2,8 +2,8 @@ module ActionView module Helpers # See ActionController::Caching::Fragments for usage instructions. module CacheHelper - def cache(binding, name, key = nil) - @controller.cache_erb_fragment(binding, name, key) { yield } + def cache(binding, name = {}) + @controller.cache_erb_fragment(binding, name) { yield } end end end |