-
-
Notifications
You must be signed in to change notification settings - Fork 229
Rails 4.2 support? #112
Comments
I haven't looked at this project for a long time and my thoughts (although On Thu, May 28, 2015 at 8:24 PM, Keith Pitty [email protected]
Jim OKelly Want to book time with me? http://calendly.com/thatrubylove Advanced Ruby musings @ RubyLove Expert mentor @ CodeMentor Interested in knowing what I think is good Ruby? |
+1 for upgrade to Rails 4.2 |
+1 |
1 similar comment
+1 |
Anyone want to share their experience migrating from VestalVersions to PaperTrail... or literally any other alternative? |
@mandysimon88 Yes, I replaced VV with PaperTrail with only a little bit of trouble. But to be honest, I haven't done extensive testing in my app. There was a little bit of weirdness involved with the migration. Both gems create a "versions" table, but they are different. I didn't have a lot of data to save, so I just added a "drop table" line to the PT migration before running it. VV did a few things that PT requires extra configuration for. If you want to display individual property changes, rather than just saving different versions you'll need an extra table. Also, if you want PT to track model association changes, you'll need to add an initializer to set "PaperTrail.config.track_associations = true" and yet another table. If you want to track the user who made the changes, you need to add "before_action :set_paper_trail_whodunnit". If I remember correctly, I followed the instructions in the Readme for PT and it was less painful than I expected. Most of the code changes were just replacing the class name "VestalVersions" with "PaperTrail", although the loading of a version was a little different (I didn't take the time to figure out why, or if this is even necessary): |
@safetypins Yes, posting the diff would be really helpful! Thank you so much for your reply… Since this gem is deprecated so many versions of Rails ago, it’s an unexpected surprise and happy moment to get some really specific advice so quickly! Thank you! |
The gem hasn't been upgraded to support Rails 4.2. We've tried the https://github.com/safetypins/vestal_versions fork but it fails when attempts are made to destroy objects (see #111 (comment)).
We're considering moving from Vestal Versions to PaperTrail. However, if Vestal Versions was to be updated to support Rails 4.2 we may reconsider.
@laserlemon @midas @dreamr what are your intentions for Vestal Versions? Do you intend to continue maintaining it?
The text was updated successfully, but these errors were encountered: