Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@johnpaulashenfelter johnpaulashenfelter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/locking/pessimistic.rb
View
2  activerecord/lib/active_record/locking/pessimistic.rb
@@ -14,7 +14,7 @@ module Locking
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.