1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/locking
Jeremy Kemper 722e0b6a8b r4664@asus: jeremy | 2006-06-19 18:55:36 -0700
Use the #lock method to obtain a row lock on a single record. Simply reloads the record with :lock => true.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-20 01:58:36 +00:00
..
optimistic.rb r4664@asus: jeremy | 2006-06-19 18:55:36 -0700 2006-06-20 01:58:36 +00:00
pessimistic.rb r4664@asus: jeremy | 2006-06-19 18:55:36 -0700 2006-06-20 01:58:36 +00:00