diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-17 20:21:35 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-17 20:21:35 -0300 |
commit | 84e541ecb41262234afbdff9096258dce77ededa (patch) | |
tree | ed16bafc01fb30fddc6392cec744c6bb9f81b5b2 /activerecord/lib/active_record/locking/pessimistic.rb | |
parent | 110a066bb4f0109f48025b84cd4b5d0695bd64ca (diff) | |
download | rails-84e541ecb41262234afbdff9096258dce77ededa.tar.gz rails-84e541ecb41262234afbdff9096258dce77ededa.tar.bz2 rails-84e541ecb41262234afbdff9096258dce77ededa.zip |
Better doc styling in ActiveRecord::Locking
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 |