diff options
author | Xavier Noria <fxn@hashref.com> | 2011-05-18 22:50:44 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-05-18 22:50:44 +0200 |
commit | b13d24e5b96cf35cfaf64d4141216a30a7de9a33 (patch) | |
tree | 47356ad8bb919a141018958a469c649c3026d933 /activerecord/lib/active_record/locking/pessimistic.rb | |
parent | ab42f9c9e31aa63b4ceca83c74486d849f2e33e7 (diff) | |
parent | 1c9a9d9bd2132534fb8b3f6bec6acdb7dcb38ba9 (diff) | |
download | rails-b13d24e5b96cf35cfaf64d4141216a30a7de9a33.tar.gz rails-b13d24e5b96cf35cfaf64d4141216a30a7de9a33.tar.bz2 rails-b13d24e5b96cf35cfaf64d4141216a30a7de9a33.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'activerecord/lib/active_record/locking/pessimistic.rb')
-rw-r--r-- | activerecord/lib/active_record/locking/pessimistic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/locking/pessimistic.rb b/activerecord/lib/active_record/locking/pessimistic.rb index 862cf8f72a..4c4c1bf5a1 100644 --- a/activerecord/lib/active_record/locking/pessimistic.rb +++ b/activerecord/lib/active_record/locking/pessimistic.rb @@ -3,7 +3,7 @@ module ActiveRecord # Locking::Pessimistic provides support for row-level locking using # SELECT ... FOR UPDATE and other lock types. # - # Pass <tt>:lock => true</tt> to ActiveRecord::Base.find 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) @@ -21,7 +21,7 @@ module ActiveRecord # yuko.save! # end # - # You can also use ActiveRecord::Base#lock! method to lock one record by id. + # You can also use <tt>ActiveRecord::Base#lock!</tt> method to lock one record by id. # This may be better if you don't need to lock every row. Example: # # Account.transaction do |