From 3b18e900e8fc3c333dc52e71c7cb8413250ac192 Mon Sep 17 00:00:00 2001 From: John Paul Ashenfelter Date: Thu, 19 May 2011 01:20:26 -0400 Subject: Closes GH #1032 Fixed what looks like minor cut/paste error in documentation for ActiveRecord::Locking:Pessimistic --- activerecord/lib/active_record/locking/pessimistic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 -- cgit v1.2.3