mirror of
https://github.com/github/rails.git
synced 2026-01-12 16:19:01 -05:00
Fix doc about nested transaction rollback
Because AR::Rollback do not reraise and inner transaction is not "real" nothing rollback at all
This commit is contained in:
@@ -141,7 +141,8 @@ module ActiveRecord
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# User.find(:all) # => empty
|
||||
# User.find(:all) # => Return both Kotori and Nemu, because inner transaction do not rollback
|
||||
# # without :requiers_new => true option, and Rollback exception do not reraise
|
||||
#
|
||||
# It is also possible to requires a sub-transaction by passing
|
||||
# <tt>:requires_new => true</tt>. If anything goes wrong, the
|
||||
|
||||
Reference in New Issue
Block a user