aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 17:54:06 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 17:54:06 +0000
commitbbd3e3966876ff76f33fee5b633004a1c636688c (patch)
treea505faea300133a6284c967b682168899af4c4ee /actionpack/lib/action_view
parent7306675fe276a7586afa8526068e4698a6d360cf (diff)
downloadrails-bbd3e3966876ff76f33fee5b633004a1c636688c.tar.gz
rails-bbd3e3966876ff76f33fee5b633004a1c636688c.tar.bz2
rails-bbd3e3966876ff76f33fee5b633004a1c636688c.zip
Fixed no-binding fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/cache_helper.rb4
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 9353e5a694..de2707ac75 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(name = {})
- @controller.cache_erb_fragment(binding, name) { yield }
+ def cache(name = {}, &block)
+ @controller.cache_erb_fragment(block, name)
end
end
end