Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Returning the original version is a common use-case and is not as easy as it should be, particularly because calling `reify` on the first version returns `nil`, which is the `object` *before* it was created. This method simply tries to `reify` from the *second* version, if it exists. If it doesn’t exist (i.e. there has not been any changes to the object), it falls back to `self`, which is the original and *only* version of the object. Fixes paper-trail-gem#1204.
- Loading branch information