🙂 Got a new task and struggle a bit. I need to implement versioning in my rails apps. So I tried few gems like mongoid history, mongoid papertrail, and the most simple Mongoid:Versioning. Would like to use the last one, just can’t find proper api docks and don’t know how to lets say reverse from version 5 to version 2. You have something like versions.count, versions.first, versions.last, versions.where…… and that’s about it 🙂 Thank you for any advice or help! 🙂
Share
Given you have an article that changes its versions, to revert:
Note that this will just put a new versions in the list of versions, with this at the top of the stack.
To list all versions:
To show a particular revision: