diff options
author | Marcel Molina <marcel@vernix.org> | 2007-11-06 19:11:42 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-11-06 19:11:42 +0000 |
commit | 96fa4a2f52c55e97eb638cc35a9fe35c3efc062e (patch) | |
tree | 3d08217f08f2f89b96a68720e9f1bf3b0246bee2 /activerecord | |
parent | 4f59aacb6854885230801a7b694ea592677c3e3d (diff) | |
download | rails-96fa4a2f52c55e97eb638cc35a9fe35c3efc062e.tar.gz rails-96fa4a2f52c55e97eb638cc35a9fe35c3efc062e.tar.bz2 rails-96fa4a2f52c55e97eb638cc35a9fe35c3efc062e.zip |
Make transaction documentation example more realistic
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 205d8c5e24..0cffcef313 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -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 |