提交 3b18e900 编写于 作者: J John Paul Ashenfelter

Closes GH #1032

Fixed what looks like minor cut/paste error in documentation for ActiveRecord::Locking:Pessimistic
上级 b13d24e5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册