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.
1 parent 4a81efa commit c06a110Copy full SHA for c06a110
lib/closure_tree/support.rb
@@ -110,7 +110,7 @@ def where_eq(column_name, value)
110
111
def with_advisory_lock(&block)
112
if options[:with_advisory_lock]
113
- model_class.with_advisory_lock(advisory_lock_name) do
+ model_class.with_advisory_lock!(advisory_lock_name, timeout_seconds: 5) do
114
transaction { yield }
115
end
116
else
0 commit comments