diff --git a/lib/audited.rb b/lib/audited.rb index 21374858..6940e2ba 100644 --- a/lib/audited.rb +++ b/lib/audited.rb @@ -49,4 +49,4 @@ def config end require "audited/sweeper" -require "audited/railtie" +require "audited/railtie" if Audited.const_defined?(:Rails)