Hi all, Suppose I have a transaction nested within a loop. Like the folowing: 4.times do Product.transaction do # do something next if flag # do something else end end Would the transaction be rolled back if the "next" statement is reached? Thanks, Roberto Prado.
on 2007-07-02 22:05
on 2007-07-03 01:45
On Monday 02 July 2007, rjprado wrote: > Would the transaction be rolled back if the "next" statement is No, the transaction is *only* rolled back, if the transaction block is exited by an exception. Michael -- Michael Schuerig mailto:email@example.com http://www.schuerig.de/michael/