aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Ashenfelter <johnpaul@transitionpoint.com>2011-05-19 01:20:26 -0400
committerJohn Paul Ashenfelter <johnpaul@transitionpoint.com>2011-05-19 01:20:26 -0400
commit3b18e900e8fc3c333dc52e71c7cb8413250ac192 (patch)
treef42f1a3ad90e2bf537dd4dd84aea8ae656e37c59
parentb13d24e5b96cf35cfaf64d4141216a30a7de9a33 (diff)
downloadrails-3b18e900e8fc3c333dc52e71c7cb8413250ac192.tar.gz
rails-3b18e900e8fc3c333dc52e71c7cb8413250ac192.tar.bz2
rails-3b18e900e8fc3c333dc52e71c7cb8413250ac192.zip
Closes GH #1032
Fixed what looks like minor cut/paste error in documentation for ActiveRecord::Locking:Pessimistic
-rw-r--r--activerecord/lib/active_record/locking/pessimistic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/locking/pessimistic.rb b/activerecord/lib/active_record/locking/pessimistic.rb
index 4c4c1bf5a1..66994e4797 100644
--- a/activerecord/lib/active_record/locking/pessimistic.rb
+++ b/activerecord/lib/active_record/locking/pessimistic.rb
@@ -14,7 +14,7 @@ module ActiveRecord
# Account.transaction do
# # select * from accounts where name = 'shugo' limit 1 for update
# shugo = Account.where("name = 'shugo'").lock(true).first
- # yuko = Account.where("name = 'shugo'").lock(true).first
+ # yuko = Account.where("name = 'yuko'").lock(true).first
# shugo.balance -= 100
# shugo.save!
# yuko.balance += 100