Draftsman Ruby Gem

Built in 2014  ·  Visit project

Draftsman

I needed the following functionality in a Rails app, so I built, shared, and distributed a Ruby gem for it:

  • Save drafts of database records with a publishing workflow.
  • Already published records can have updates drafted to them without the updates being published immediately.
  • Keep draft records in a separate drafts database table so they can be queried independently of the records that they are drafting.
  • Publish and revert actions are automatically applied to dependent records’ drafts too.
  • Integrated with Rails similar to the PaperTrail gem.

Since releasing the gem as open source, many other developers have integrated it into their applications, and several of them have contributed new features and bug fixes to the project.

Tools used

Ruby on Rails
Ruby on Rails