Audited is made to work with the current version and previous versions. What I want is to have one more version, a future version, AKA a draft.
Desired Scenario
The current version of an object is used everywhere. However, in the admin screen, you can access and edit a future/draft version of the object. This allows you to make modifications that are not yet visible to others. When the draft is ready, you publish it, making it the current version used everywhere.
I don't see any support for this.
- Am I missing something? Is this supported?
- Is there some kind of Audited hack that can support this, even in an ugly way?
- If no to the above, does this seem like something that could be done reasonably with the Audited gem or am I better off using a different method?
I didn't use the Audited gem to deliver "draft" mode. Instead, I added a boolean named active to the model, and declared
Then, in the controller, a method for administrators to see the draft items:
Last, a method in the controller to publish the item: