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:
parent
4309c1fda3
commit
9c4ac84e49
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue