This project is archived and is in readonly mode.

#2537 ✓resolved
ransom-briggs (at uiowa)

autosave associations should not destroy twice when saving twice

Reported by ransom-briggs (at uiowa) | April 21st, 2009 @ 05:17 PM | in 2.3.6

Something marked_for_destruction? that is successfully destroyed will have a second destroy attempted if the parent object is saved a second time. I would expect the destroyed object to be ignored by autosave associations.

Attached a failing test that catches this behavior.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages