mongoid-history
mongoid-history copied to clipboard
History tracker recording undo action as the last change..
When we perform the undo action, is there a way to use undo action twice in a row ? In my experince when u perform the undo action, the next undo action becomes a redo because the history tracker records the undo action as the last action we did,, Is there any way to implement history tracker as a stack ?
This should be possible with some work. You can undo multiple changes with x.undo! :last => 3
today, but not by calling undo
3 times. I can see something like x.undo! :history => false
or x.fundo!
;) PRs welcome!