Replies: 3 comments
-
To tack onto this: I just realized that paper_trail is tracking all edits to the models that have has_paper_trail - this isn’t what I want. I only care to track admin edits made within rails admin, in the history tabs. In rails_admin v2 using the history adapter, this was perfect! We had a great record of activity made within rails_admin. paper_trail seems like a step backward to me. |
Beta Was this translation helpful? Give feedback.
-
I opened the class in an initializer and changed what it shows in the message when the event is an update. But this is still a big step back from the old rails_admin v2 history.
Still not sure how to fix my other issue of only wanting to show history from administrators. |
Beta Was this translation helpful? Give feedback.
-
I think this is caused by paper-trail-gem/paper_trail#1399. You could verify by downgrading paper trail. But when loading |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm upgrading and moving from the history adapter to paper_trail. Seemingly, the last thing to resolve:
Previously with the history adapter, after editing a record, the "Message" field in history would (fairly) clearly state what was edited. For example:
But so far with paper_trail, this Message field only states "Update" in it. This appears to be the "Event", as show here
rails_admin/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb
Line 14 in 5a958e4
I would rather the message show the object_changes when the event is an update.
Example object_changes values from a transaction.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions