Skip to content

Commit

Permalink
Merge pull request #665 from nicduke38degrees/conditional-require-rai…
Browse files Browse the repository at this point in the history
…ltie

Conditional require railtie to support using audited gem in non-Rails projects
  • Loading branch information
danielmorrison authored Nov 6, 2023
2 parents 7e881fb + 8d54983 commit 9a2a516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/audited.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def config
end

require "audited/sweeper"
require "audited/railtie"
require "audited/railtie" if Audited.const_defined?(:Rails)

0 comments on commit 9a2a516

Please sign in to comment.