Skip to content

Commit

Permalink
perform_caching should be accessed through the controller here
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Apr 18, 2010
1 parent 4309c1f commit 9c4ac84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/cache_helper.rb
Expand Up @@ -39,7 +39,7 @@ def cache(name = {}, options = nil, &block)
private private
# TODO: Create an object that has caching read/write on it # TODO: Create an object that has caching read/write on it
def fragment_for(name = {}, options = nil, &block) #:nodoc: def fragment_for(name = {}, options = nil, &block) #:nodoc:
if controller.class.perform_caching if controller.perform_caching
if controller.fragment_exist?(name, options) if controller.fragment_exist?(name, options)
controller.read_fragment(name, options) controller.read_fragment(name, options)
else else
Expand Down

0 comments on commit 9c4ac84

Please sign in to comment.