lib/closure_tree/support.rb in closure_tree-4.2.4 vs lib/closure_tree/support.rb in closure_tree-4.2.5
- old
+ new
@@ -104,12 +104,10 @@
end
def with_advisory_lock(&block)
if options[:with_advisory_lock]
model_class.with_advisory_lock("closure_tree") do
- model_class.transaction do
- yield
- end
+ transaction { yield }
end
else
yield
end
end