Permalink
Browse files

perform_caching should be accessed through the controller here

  • Loading branch information...
spastorino committed Apr 17, 2010
1 parent 4309c1f commit 9c4ac84e495c1476758aa8bcc764f6c1a935f404
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/cache_helper.rb
@@ -39,7 +39,7 @@ def cache(name = {}, options = nil, &block)
private
# TODO: Create an object that has caching read/write on it
def fragment_for(name = {}, options = nil, &block) #:nodoc:
- if controller.class.perform_caching
+ if controller.perform_caching
if controller.fragment_exist?(name, options)
controller.read_fragment(name, options)
else

0 comments on commit 9c4ac84

Please sign in to comment.