This project is archived and is in readonly mode.

#6689 new
Chris Willmore

Docs for ActiveRecord::Locking::Pessimistic don't make sense

Reported by Chris Willmore | April 8th, 2011 @ 07:23 PM

The online documentation for ActiveRecord::Locking::Pessimistic in Rails 3.0.6 has a small error in it:

  shugo = Account.where("name = 'shugo'").lock(true).first
  yuko = Account.where("name = 'shugo'").lock(true).first

It seems like the latter should have where("name = 'yuko'") instead.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket