The transaction method is executed within the context of the active record class for the excution of the all transactions. Ex Account.transaction do account1.deposit(100) account2.withdraw(100) end But i want to execute the transaction within the context of more than on active record class then what would be the solution? How should i specify the context? Plz suggest me. Thanks.
on 2007-07-20 11:07
on 2007-07-20 12:06
vishal wrote: > specify the context? This was recently discussed in this thread: http://groups.google.dk/group/rubyonrails-talk/bro... -- Cheers, - Jacob Atzen
on 2007-07-20 12:14