Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

autosave associations should not destroy twice when saving twice

#2537

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.

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

State: resolved
Milestone: 2.3.6
Assigned to: Eloy Duran Eloy Duran
Importance: none

Activity

  1. Eloy Duran
    Eloy Duran
    • State changed from new to verified
    • Milestone changed from 2.x to 2.3.4

    I have verified and fixed this on my branch of 2-3-stable, which Micheal will look at and merge in before 2.3.4.

    http://github.com/alloy/rails/commit/263dae11088b3544292a5a2b24bcda...

    Thanks!

    July 12th, 2009 @ 12:36 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.3.4 to 2.3.6

    [milestone:id#50064 bulk edit command]

    September 11th, 2009 @ 11:04 PM

  3. Repository
  4. Repository