Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.34 KB

CHANGELOG.md

File metadata and controls

36 lines (21 loc) · 1.34 KB

v0.2.4

  • When publishing a draft with no draft_parent, ensured the return value is the same (self) as when it does have a draft_parent.

v0.2.3

  • Fixed a failing scenario where associated objects modified the parent object before the parent was destroyed
  • Fixed a failing scenario where inverse relationship was not detected under certain conditions

v0.2.2

  • Fixed regression bug where attributes were sometimes not being copied over to the draft parent.

v0.2.1

  • Fixed bug where associated has_many records with CarrierWave uploads were not duplicated correctly - uploaded files are now copied
  • Fixed bug where destroying a draft would remove an uploaded file from its draft parent if they shared the same file.
  • Fixed bug where drafts were destroyed before publish_draft was successful
  • Added an ActiveRecord error where save fails if drafts exist for an instance

v0.2.0

  • Now defines a published scope rather than a default_scope. This avoids a number of complexities especially around validations and polymorphic relationships.

v0.1.1

  • CarrierWave uplaods on associated records are now cloned correctly.

v0.1.0

  • Additional callbacks added to allow bespoke behaviour around the save as draft and publish draft lifecycles.
  • Additional options added to remove previously documented limitations.

v0.0.1

  • First release.