Adds the functionality to publish (or set as draft) a document using Mongoid.