draftsman icon indicating copy to clipboard operation
draftsman copied to clipboard

When calling `destroy` on a draft then draft_id still contains old id

Open leewaa opened this issue 5 years ago • 0 comments

This caught my eye since for filtering I rely on the draft_id as it is much more performant querying the database directly.

However I noticed the draft_id attribute still contains the old id of the draft which was destroyed. A simple object.draft.destroy causes this behaviour.

It would be nicer if the draft_id was nilled like any other active record object.

leewaa avatar Jun 07 '19 12:06 leewaa