Module: Mongoid::Enum

Extended by:
ActiveSupport::Concern
Defined in:
lib/mongoid/enum.rb,
lib/mongoid/enum/version.rb,
lib/mongoid/enum/configuration.rb,
lib/mongoid/enum/validators/multiple_validator.rb

Defined Under Namespace

Modules: ClassMethods, Validators Classes: Configuration

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.configurationObject


11
12
13
# File 'lib/mongoid/enum/configuration.rb', line 11

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


15
16
17
# File 'lib/mongoid/enum/configuration.rb', line 15

def self.configure
  yield(configuration) if block_given?
end