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

Define audit_class per model #641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kuldeepaggarwal
Copy link

@kuldeepaggarwal kuldeepaggarwal commented Nov 25, 2022

Closes #471

@kuldeepaggarwal kuldeepaggarwal force-pushed the define_audit_class_per_model branch 3 times, most recently from a7cd5f4 to ffdc4c4 Compare November 28, 2022 17:37
@kuldeepaggarwal kuldeepaggarwal marked this pull request as ready for review November 29, 2022 18:29
@amkisko
Copy link

amkisko commented Jan 12, 2023

Waiting for this one :)

@danielmorrison
Copy link
Member

I like the idea here, but I'd like to see some tests exercising it. Also, we changed audit_class= to allow a constant or string (to avoid autoload issues).

@pboling
Copy link

pboling commented Jan 23, 2024

This will allow us to have multiple tables of audit logs? So different models could log to different audit log tables?

@amkisko
Copy link

amkisko commented Jan 24, 2024

This will allow us to have multiple tables of audit logs? So different models could log to different audit log tables?

Same thing already available for quite long time in PaperTrail: https://github.com/paper-trail-gem/paper_trail#6a-custom-version-classes

@amkisko
Copy link

amkisko commented Oct 29, 2024

Moved forward this PR here #735 -- some edge cases fixed, e.g. audited_classes were not correctly collected, also improved test coverage.

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.

different audit table per model?
4 participants