mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Make transaction documentation example more realistic
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -50,8 +50,8 @@ module ActiveRecord
|
||||
# though <tt>transaction</tt> is called on the <tt>Account</tt> class:
|
||||
#
|
||||
# Account.transaction do
|
||||
# balance.save
|
||||
# account.save
|
||||
# balance.save!
|
||||
# account.save!
|
||||
# end
|
||||
#
|
||||
# == Transactions are not distributed across database connections
|
||||
|
||||
Reference in New Issue
Block a user