diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 01:54:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 01:54:55 +0000 |
commit | efdabfb8f5b6d62bbd2455d5230b1d3f72219380 (patch) | |
tree | ca8decd28717a6b3df3c0fb3845e9228ec2fa643 | |
parent | 0f4cba7b8657d7ab4f8e072e143a281330373cbb (diff) | |
download | rails-efdabfb8f5b6d62bbd2455d5230b1d3f72219380.tar.gz rails-efdabfb8f5b6d62bbd2455d5230b1d3f72219380.tar.bz2 rails-efdabfb8f5b6d62bbd2455d5230b1d3f72219380.zip |
Updated to new naming style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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 |