1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

perform_caching should be accessed through the controller here

This commit is contained in:
Santiago Pastorino 2010-04-17 19:10:10 -03:00
parent 4309c1fda3
commit 9c4ac84e49

View file

@ -39,7 +39,7 @@ module ActionView
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