Skip to content
Browse files

Make transaction documentation example more realistic

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4f59aac commit 96fa4a2f52c55e97eb638cc35a9fe35c3efc062e Marcel Molina committed Nov 6, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/transactions.rb
View
4 activerecord/lib/active_record/transactions.rb
@@ -50,8 +50,8 @@ def self.included(base)
# 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

0 comments on commit 96fa4a2

Please sign in to comment.
Something went wrong with that request. Please try again.