Sha256: 747280115ce9db0efc4d5c3a3e88a602ab3f6bf8e3941ca2eb80a12f78b96ec9

Contents?: true

Size: 333 Bytes

Versions: 51

Compression:

Stored size: 333 Bytes

Contents

require 'with_advisory_lock'

module ClosureTree
  module WithAdvisoryLock
    def ct_with_advisory_lock(&block)
      if closure_tree_options[:with_advisory_lock]
        with_advisory_lock("closure_tree") do
          transaction do
            yield
          end
        end
      else
        yield
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.92 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.90 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
closure_tree-3.10.2 lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.84 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.80 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.79 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.78 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.77 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.74 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.73 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.72 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.71 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.66 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.65 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.64 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.63 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.62 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.61 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.60 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb
lalala-4.0.0.dev.59 vendor/deps/closure_tree/lib/closure_tree/with_advisory_lock.rb