Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

perform_caching is now delegated to config on instance and class level

  • Loading branch information...
commit 4309c1fda3d778b16569b74a7d86ec19b5e994a3 1 parent 8c7e897
@spastorino spastorino authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.