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

Enable paper trail association tracking only for certain modules. #21

Open
navneet-demodesk opened this issue Dec 2, 2020 · 1 comment

Comments

@navneet-demodesk
Copy link

Currently, I have enabled the following -

PaperTrail.config.track_associations = true.

But this would track all models and associations and add to the versions_associations table. I was wondering if there is a way to enable this only for certain models and associations.

Thanks!

@weston-vericatch
Copy link

At this time this is not implemented. PR's will be accepted.

Personally I recommend to roll your own solution using the code from my new, not yet released gem: https://github.com/westonganger/active_snapshot

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

No branches or pull requests

2 participants