module Mongoid::Orderable

Constants

MUTEX
VERSION

Public Class Methods

config() click to toggle source
# File lib/mongoid/orderable.rb, line 12
def config
  @config || MUTEX.synchronize { @config = ::Mongoid::Orderable::Configs::GlobalConfig.new }
end
configure() { |config| ... } click to toggle source
# File lib/mongoid/orderable.rb, line 8
def configure
  yield(config) if block_given?
end

Public Instance Methods

orderable(options = {}) click to toggle source
# File lib/mongoid/orderable.rb, line 24
def orderable(options = {})
  Mongoid::Orderable::Installer.new(self, options).setup
end