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

Process including ActionText::RichText fields? #47

Open
erwin opened this issue Jan 23, 2024 · 1 comment
Open

Process including ActionText::RichText fields? #47

erwin opened this issue Jan 23, 2024 · 1 comment

Comments

@erwin
Copy link

erwin commented Jan 23, 2024

I've been using PaperTrail but ran into difficulty trying to save and restore ActionText::RichText fields.

I saw you also have a PaperTrail plugin paper_trail-association_tracking...

It seems so odd to me that neither PaperTrail, paper_trail-association_tracking, or active_snapshot directly address the issue of how to handle versioning when some of your fields are ActionText::RichText fields, I would think these would be some of the most important fields to store version history for...

There's a stackoverflow post about using PaperTrail with ActionText, but it doesn't seem to have a clear accepted solution.

https://stackoverflow.com/a/76982798/

I'm fine to continue using PaperTrail, I'm fine to use something else.

So far the only place I've seen this addressed clearly is this DriftingRuby video:

https://www.driftingruby.com/episodes/tracking-changes-on-action-text

Seeing as how your an expert on snapshotting ruby and associations, would be awesome if you could share your thoughts on this!

@westonganger
Copy link
Owner

I fail to see what any of these libraries should be doing different. Seems the stack overflow code you posted or some other custom app logic would be required to call the new snapshot method.

If you have a proposal happy to discuss but from my point of view you are describing app code not library code.

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