Re: [Rails] Destroy association in memory

2010-07-26 Thread Anatoliy Lysenko
rue> Thanks, Anatoliy. 2010/7/22 Colin Law > On 22 July 2010 14:28, Anatoliy Lysenko wrote: > > Hi Bill, > > I was not clear, > > > > Given situation when we have parent object task, and child object > resource, > > task has many resources. > > Is tha

Re: [Rails] Destroy association in memory

2010-07-22 Thread Anatoliy Lysenko
t when you mark object it is still in association. Thanks, Anatoliy 2010/7/22 Bill Walton > Hi Anatoliy, > > On Thu, Jul 22, 2010 at 6:42 AM, Anatoliy Lysenko > wrote: > > I need method to destroy object in memory and remove it from database > > when parent object is sav

[Rails] Destroy association in memory

2010-07-22 Thread Anatoliy Lysenko
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 m