paper-trail-gem / paper_trail

Track changes to your rails models
MIT License
6.79k stars 896 forks source link

Support for belongs_to whodunnit #1481

Closed barodeur closed 3 weeks ago

barodeur commented 4 months ago

Thank you really much for PaperTrail.

I ran into a bug while using PaperTrail in a specific way:

I really loved that this worked out of the box. But I eventually ran into a weird behavior:

This is particularly bad when creating another version right after because that new User dup will now be saved and duplicated.

I did my best to add a test to highlight the problem with a new test. I understand that using an AR model as whodunnit value is not necessarily supported, but the proposed changed should not break the API.

Thank you

Check the following boxes:

github-actions[bot] commented 1 month ago

This PR has been automatically marked as stale due to inactivity. The resources of our volunteers are limited. If this is something you are committed to continue working on, please address any concerns raised by review and/or ping us again. Thank you for all your contributions.