Destroy association in memory

Hi, Does Rails antipode of build method? Build make object in memory, and save it to database when parent object is saved. I need method to destroy object in memory and remove it from database when parent object is saved. mark_for_destruction is not the answer, because it not destroy object, only mark it.

Thanks, Anatoliy.

Hi Anatoliy,

Hi Everyone, Thanks for responses, I found what I need: http://rails.lighthouseapp.com/projects/8994/tickets/4521-habtm-ability-to-link-and-unlink-records-with-autosave-true

Thanks, Anatoliy.