There's no documentation for this item.
| Modules | |
|---|---|
| Optimistic | Optimistic locking allows multiple users to access the same record for edits, and assumes a minimum of conflicts with the data. It does this by checking whether another process has made changes to a record since it was opened, an ActiveRecord::StaleObjectError is thrown if that has occurred and the update is ignored. |
| Pessimistic | Locking::Pessimistic provides support for row-level locking using SELECT … FOR UPDATE and other lock types. |
<code/>and<pre/>for code samples.