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:
Ivan Evtukhovich
2010-12-09 00:41:47 +03:00
parent 8c822e8e29
commit 53bbbcc663

View File

@@ -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