copasetickid / draftsman

Ruby gem that lets you create draft versions of your database records.
MIT License
169 stars 62 forks source link

Add Draftsman.ignore_draft_id_attribute setting #50

Closed chrisdpeters closed 8 years ago

chrisdpeters commented 8 years ago

The purpose of this setting will be to not include draft_id in Draft#object and Draft#object_changes. It will be set to ignore by default.

When changed from the default, extra unneeded data is stored along with the draft, along with the potential to have unexpected results during object reification.

I'll need to experiment with this in the previous_draft attribute to make sure that omission of this data doesn't cause problems when reifying a trashed draft.