diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-03-04 16:59:54 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-03-04 16:59:54 -0800 |
commit | 3438373f038cefda664b879f49eec8aec6a15a76 (patch) | |
tree | 78b0c2c31e4a1eb99d2c62fa66a8fccf5fb1ad6f /actionpack/lib/action_controller/caching/sweeping.rb | |
parent | ff29606c061099f82668ab62e50660cda8645512 (diff) | |
download | rails-3438373f038cefda664b879f49eec8aec6a15a76.tar.gz rails-3438373f038cefda664b879f49eec8aec6a15a76.tar.bz2 rails-3438373f038cefda664b879f49eec8aec6a15a76.zip |
Use AS::Concern for caching modules
Diffstat (limited to 'actionpack/lib/action_controller/caching/sweeping.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching/sweeping.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb index 871f41bfdd..cf16417e84 100644 --- a/actionpack/lib/action_controller/caching/sweeping.rb +++ b/actionpack/lib/action_controller/caching/sweeping.rb @@ -30,9 +30,7 @@ module ActionController #:nodoc: # cache_sweeper OpenBar::Sweeper, :only => [ :edit, :destroy, :share ] # end module Sweeping - def self.included(base) #:nodoc: - base.extend(ClassMethods) - end + extend ActiveSupport::Concern module ClassMethods #:nodoc: def cache_sweeper(*sweepers) |