Skip to content
This repository
Browse code

Closes GH #1032

Fixed what looks like minor cut/paste error in documentation for ActiveRecord::Locking:Pessimistic
  • Loading branch information...
commit 3b18e900e8fc3c333dc52e71c7cb8413250ac192 1 parent b13d24e
John Paul Ashenfelter authored May 19, 2011
2  activerecord/lib/active_record/locking/pessimistic.rb
@@ -14,7 +14,7 @@ module Locking
14 14
     #   Account.transaction do
15 15
     #     # select * from accounts where name = 'shugo' limit 1 for update
16 16
     #     shugo = Account.where("name = 'shugo'").lock(true).first
17  
-    #     yuko = Account.where("name = 'shugo'").lock(true).first
  17
+    #     yuko = Account.where("name = 'yuko'").lock(true).first
18 18
     #     shugo.balance -= 100
19 19
     #     shugo.save!
20 20
     #     yuko.balance += 100

0 notes on commit 3b18e90

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