diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-11-10 17:16:21 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-11-10 17:16:21 +0200 |
commit | 890da5149df19c54124929ff8b533014b6b46e69 (patch) | |
tree | 6a7f19b90ab939482e94b5af5a32d76057a2e708 /activerecord/lib/active_record/locking | |
parent | dcf401e3bc7163aefab856abe7f1d238025c4ef9 (diff) | |
download | rails-890da5149df19c54124929ff8b533014b6b46e69.tar.gz rails-890da5149df19c54124929ff8b533014b6b46e69.tar.bz2 rails-890da5149df19c54124929ff8b533014b6b46e69.zip |
1.9 Syntax related changes
Diffstat (limited to 'activerecord/lib/active_record/locking')
-rw-r--r-- | activerecord/lib/active_record/locking/pessimistic.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/locking/pessimistic.rb b/activerecord/lib/active_record/locking/pessimistic.rb index 58af92f0b1..b4bb95a392 100644 --- a/activerecord/lib/active_record/locking/pessimistic.rb +++ b/activerecord/lib/active_record/locking/pessimistic.rb @@ -3,12 +3,12 @@ module ActiveRecord # Locking::Pessimistic provides support for row-level locking using # SELECT ... FOR UPDATE and other lock types. # - # Pass <tt>:lock => true</tt> to <tt>ActiveRecord::Base.find</tt> to obtain an exclusive + # Pass <tt>lock: true</tt> to <tt>ActiveRecord::Base.find</tt> to obtain an exclusive # lock on the selected rows: # # select * from accounts where id=1 for update - # Account.find(1, :lock => true) + # Account.find(1, lock: true) # - # Pass <tt>:lock => 'some locking clause'</tt> to give a database-specific locking clause + # Pass <tt>lock: 'some locking clause'</tt> to give a database-specific locking clause # of your own such as 'LOCK IN SHARE MODE' or 'FOR UPDATE NOWAIT'. Example: # # Account.transaction do |