On Jul 31, 11:49 am, Guo Yangguang <[email protected]> wrote: > ######## > I don't understand "Note that this callback is still wrapped in the > transaction around save". > if exception occurs when saving the existing record, or when executing > after_update method body,both the existing record's saving and sql > statements in the after_update method body are all rollbacked? > Correct. The entirety of the save process (validations, before_save, after_save etc.) is wrapped in a single transaction.
Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

