提交 53bbbcc6 编写于 作者: I Ivan Evtukhovich

Fix doc about nested transaction rollback

Because AR::Rollback do not reraise and inner transaction is not "real"
nothing rollback at all
上级 8c822e8e
......@@ -141,7 +141,8 @@ class TransactionError < ActiveRecordError # :nodoc:
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册