Skip to content

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 force-pushed the define_audit_class_per_model branch from ffdc4c4 to 7d9b0d6 Compare November 29, 2022 18:29
@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