Permalink
Browse files

perform_caching is now delegated to config on instance and class level

  • Loading branch information...
1 parent 8c7e897 commit 4309c1fda3d778b16569b74a7d86ec19b5e994a3 @spastorino spastorino committed Apr 17, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/lib/action_controller/caching.rb
View
5 actionpack/lib/action_controller/caching.rb
@@ -63,8 +63,9 @@ def cache_configured?
included do
extend ConfigMethods
- @@perform_caching = true
- cattr_accessor :perform_caching
+ delegate :perform_caching, :perform_caching=, :to => :config
+ singleton_class.delegate :perform_caching, :perform_caching=, :to => :config
+ self.perform_caching = true
end

0 comments on commit 4309c1f

Please sign in to comment.