You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say you have a model named Document which declares has_paper_trail.
> d=Document.create!=>#<Document id: 1, name: nil>
> d.update_attribute(:name,'Ben')=>true
> d.update_attribute(:name,'Andy')=>true
> d.previous_version=>#<Document id: 1, name: "Ben">
> d.previous_version.next_version=>nil# should return the live version (#<Document id: 1, name: "Andy">)
The next_version method is currently broken, in that if it is called on the latest reified version of a model prior to the live model, it returns nil when it should actually return the live model.
The text was updated successfully, but these errors were encountered:
Say you have a model named
Document
which declareshas_paper_trail
.The
next_version
method is currently broken, in that if it is called on the latest reified version of a model prior to the live model, it returnsnil
when it should actually return the live model.The text was updated successfully, but these errors were encountered: