About transaction method

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.

vishal wrote:

specify the context?
This was recently discussed in this thread:

http://groups.google.dk/group/rubyonrails-talk/browse_frm/thread/28030e9f9f0e9ec/915fa8a26fdfaaf1?lnk=st&q=rails+transaction+atzen&rnum=2#915fa8a26fdfaaf1


Cheers,

  • Jacob A.

Thanks Jacob.