Skip to content

Commit

Permalink
Do not automatically enable Sweeper.
Browse files Browse the repository at this point in the history
Inspired by this PR: collectiveidea#370
  • Loading branch information
guizmaii committed Apr 19, 2019
1 parent af5d51b commit da11c79
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/audited/sweeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,3 @@ def controller=(value)
end
end
end

ActiveSupport.on_load(:action_controller) do
if defined?(ActionController::Base)
ActionController::Base.around_action Audited::Sweeper.new
end
if defined?(ActionController::API)
ActionController::API.around_action Audited::Sweeper.new
end
end

0 comments on commit da11c79

Please sign in to comment.