Closed msaffitz closed 7 years ago
I've fixed the build in https://github.com/mongoid/mongoid-history/pull/183, rebase this please. Your changelog line needs to start with a capital letter too to make danger-changelog happy. Sorry about the hassle.
@dblock no worries; rebased and Changelog fixed. Thanks for considering / merging.
Merged, thanks.
Calling
destroy
multiple times on the same document attempts to track each deletion, which ultimately fails with a RuntimeError when updating the (frozen) attributes hash with the incremented version number. (This is especially problematic / difficult to track down for documents with cyclic relations and cascading destroys).This no-ops tracking of destroy for documents that are already destroyed.