We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 107dd46 + 6ba065c commit 9553814Copy full SHA for 9553814
activerecord/lib/active_record/locking/pessimistic.rb
@@ -80,8 +80,8 @@ def lock!(lock = true)
80
self
81
end
82
83
- # Wraps the passed block in a transaction, locking the object
84
- # before yielding. You can pass the SQL locking clause
+ # Wraps the passed block in a transaction, reloading the object with a
+ # lock before yielding. You can pass the SQL locking clause
85
# as an optional argument (see #lock!).
86
#
87
# You can also pass options like <tt>requires_new:</tt>, <tt>isolation:</tt>,
0 commit comments