Skip to content

Conversation

@lucasarnaud
Copy link

It is already possible to disable Audits locally for a specific object or to an entire model

image

but it not possible to do this to all classes. The only way would be to disable it at the module level with Audited.auditing_enabled = false, but this will disable audits for the entire process, which is undesirable in a multi-threaded environment like Sidekiq or Puma.

So I am opening this PR to suggest/add this feature.

Let me know if makes sense for the gem or if i need to make any changes to make it accepted.

@lucasarnaud
Copy link
Author

The proposed changes would work even if the with and without blocks are nested as in the example:

image

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.

1 participant