Skip to content

Commit

Permalink
Merge pull request rails#8 from tiegz/fix_sweeping_mod
Browse files Browse the repository at this point in the history
Fix the load order issues of Sweeping module
  • Loading branch information
guilleiguaran committed Jul 18, 2013
2 parents bbe77bd + 2ed4363 commit b614184
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rails/observers/action_controller/caching.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module Caching
autoload :Sweeping, 'rails/observers/action_controller/caching/sweeping'
end

include Sweeping if defined?(ActiveRecord)
ActionController::Base.extend Sweeping::ClassMethods if defined?(ActiveRecord)
end
end
2 changes: 0 additions & 2 deletions lib/rails/observers/action_controller/caching/sweeping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ module Caching
# cache_sweeper OpenBar::Sweeper, :only => [ :edit, :destroy, :share ]
# end
module Sweeping
extend ActiveSupport::Concern

module ClassMethods #:nodoc:
def cache_sweeper(*sweepers)
configuration = sweepers.extract_options!
Expand Down

0 comments on commit b614184

Please sign in to comment.