开发者

Papertrail versioning with correct numbers

开发者 https://www.devze.com 2023-03-13 02:30 出处:网络
I have an article model that I want to track versions with, mainly 开发者_运维百科so that users can see the history of a work in progress.

I have an article model that I want to track versions with, mainly 开发者_运维百科so that users can see the history of a work in progress.

However, papertrail stores the first version of the article as a nil object.

What is the best way to keep the version numbers consistent and not have the nil object show up, because when that link is clicked on, obviously it's a nil object.

I know this is a simple question, but there doesn't seem to be a way, based on papertrail's documentation to turn on and off versioning for a specific object as opposed to a class.

0

精彩评论

暂无评论...
验证码 换一张
取 消