We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to exclude the impersonated user from tracking audits. I know that I can use this, but it's worsened performance due to JOIN.
class CustomModel < ActiveRecord::Base audited unless: Proc.new { |m| m.profile.user.admin? } end
I'd rather prefer to set it in the initializer. Would be possible?
config/initializers/audited.rb
Audited.max_audits = 1000 Audited.current_user_method = :true_user
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to exclude the impersonated user from tracking audits.
I know that I can use this, but it's worsened performance due to JOIN.
I'd rather prefer to set it in the initializer. Would be possible?
config/initializers/audited.rb
The text was updated successfully, but these errors were encountered: