diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/cache_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/cache_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb new file mode 100644 index 0000000000..ca5a746c26 --- /dev/null +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -0,0 +1,9 @@ +module ActionView + module Helpers + module CacheHelper + def cache(binding, name, key = nil) + @controller.cache_fragment(binding, name, key) { yield } + end + end + end +end |