lib/audited/sweeper.rb in audited-4.2.0 vs lib/audited/sweeper.rb in audited-4.2.1

- old
+ new

@@ -28,11 +28,13 @@ def request_uuid controller.try(:request).try(:uuid) end def add_observer!(klass) - super - define_callback(klass) + if defined?(::ActiveRecord) + super + define_callback(klass) + end end def define_callback(klass) observer = self callback_meth = :"_notify_audited_sweeper"