Sha256: 75e646006a46042f46cba0d3cbb0af927c8c81d23a0a7febc8fd17fdefbde470

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

require 'with_advisory_lock/version'
require 'active_support'

module WithAdvisoryLock
  extend ActiveSupport::Autoload

  autoload :Concern
  autoload :Base
  autoload :DatabaseAdapterSupport
  autoload :Flock
  autoload :MySQL, 'with_advisory_lock/mysql'
  autoload :NestedAdvisoryLockError
  autoload :PostgreSQL, 'with_advisory_lock/postgresql'
end

ActiveSupport.on_load :active_record do
  ActiveRecord::Base.send :include, WithAdvisoryLock::Concern
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
with_advisory_lock-3.2.0 lib/with_advisory_lock.rb
with_advisory_lock-3.1.1 lib/with_advisory_lock.rb