Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: When use require False #594

Conversation

clement1234
Copy link

@clement1234 clement1234 commented Aug 6, 2021

Hello

Since this commit :
0a33e4f

When you realize installation with require: false you will do this to load current_user in audit records.

Installation

Add the gem to your Gemfile:

gem "audited", "~> 5.0"

And if you're using require: false you must add initializers like this:

#./config/initializers/audited.rb
require "audited"

Audited::Railtie.initializers.each(&:run)

@danielmorrison danielmorrison merged commit a8d8cd5 into collectiveidea:master Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants