aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 17:26:14 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 17:26:14 +0000
commit7306675fe276a7586afa8526068e4698a6d360cf (patch)
tree23ca47cb953f71fef18779f6dc14ba939600dd72 /actionpack/lib/action_view/helpers
parent01ead94d0b11b00fb8726a868f5538c7a5a1af35 (diff)
downloadrails-7306675fe276a7586afa8526068e4698a6d360cf.tar.gz
rails-7306675fe276a7586afa8526068e4698a6d360cf.tar.bz2
rails-7306675fe276a7586afa8526068e4698a6d360cf.zip
Removed the need for passing the binding when using CacheHelper#cache
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-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 b44b436ef4..9353e5a694 100644
--- a/actionpack/lib/action_view/helpers/cache_helper.rb
+++ b/actionpack/lib/action_view/helpers/cache_helper.rb
@@ -2,7 +2,7 @@ module ActionView
module Helpers
# See ActionController::Caching::Fragments for usage instructions.
module CacheHelper
- def cache(binding, name = {})
+ def cache(name = {})
@controller.cache_erb_fragment(binding, name) { yield }
end
end