Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leewaa opened this issue Jun 7, 2019 · 0 comments
Open

Comments

@leewaa
Copy link

leewaa commented Jun 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant