Sha256: 21dffd53789cf970406abfa970c1f92ffd3d42bb5ab593b1c14e862d599e83fb

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

module Mongoid
  module Lock
    def self.load_requirements
      require 'mongoid/lock'
    end
  end
end

if (defined?(Rails) and Rails.version.to_i >= 3)
  require 'rails'
  class MongoidLockRailtie < Rails::Railtie
    railtie_name :"mongoid-lock"
    initializer "mongoid-lock.load_requirements" do
      Mongoid::Lock::load_requirements
    end
  end
else
  Mongoid::Lock::load_requirements
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-lock-0.0.9 lib/mongoid-lock.rb
mongoid-lock-0.0.8 lib/mongoid-lock.rb
mongoid-lock-0.0.7 lib/mongoid-lock.rb
mongoid-lock-0.0.6 lib/mongoid-lock.rb
mongoid-lock-0.0.5 lib/mongoid-lock.rb
mongoid-lock-0.0.4 lib/mongoid-lock.rb
mongoid-lock-0.0.3 lib/mongoid-lock.rb
mongoid-lock-0.0.2 lib/mongoid-lock.rb
mongoid-lock-0.0.1 lib/mongoid-lock.rb