开发者

Versioned associations using vestal_versions?

开发者 https://www.devze.com 2023-01-06 03:03 出处:网络
I\'d like to be sure if vestal_versions does support versioned associations (i开发者_开发知识库t seems like it doesn\'t) before switching out to another versioning gem that can support versioned assoc

I'd like to be sure if vestal_versions does support versioned associations (i开发者_开发知识库t seems like it doesn't) before switching out to another versioning gem that can support versioned associations e.g => has_versioning. I haven't looked at the code yet but I couldn't find anything related with versioned associations from the readme file or the issue section on github. Help would be appreciated!


(At the moment of writing this) There is an associations branch in the official vestal_versions repository, It is still a basic idea and isn't merged yet in the master branch. So I decided to go with another versioning gem, specifically acts_as_revisable following the instructions in this blog post.


I'm looking for something that appears to be very close to your needs. But I don't need to revert the associated objects, just to record them. I was thinking of handle it in a nosql way. So I can save the model version and the associations would be embedded documents.

So I can compare versions in a more comprehensive way. Right now I use paper_trail, but as it can't handle associations, it's not possible to store the tags associated to a model and see how it changes through time.

0

精彩评论

暂无评论...
验证码 换一张
取 消