Module: Mongoid::Enum::Dazzl
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/mongoid/enum/dazzl.rb,
lib/mongoid/enum/dazzl/info.rb,
lib/mongoid/enum/dazzl/configuration.rb,
lib/mongoid/enum/dazzl/validators/multiple_validator.rb
Defined Under Namespace
Modules: ClassMethods, Validators Classes: Configuration
Constant Summary collapse
- VERSION =
Define version to gem
'1.0.1'
- GEM_NAME =
Name to gem
'mongoid-enum-dazzl'
- AUTHORS =
Authors
['VAILLANT Jeremy'].freeze
- EMAILS =
Emails
['[email protected]'].freeze
- LICENSE =
Licence
'MIT'
- SUMMARY =
Define a summary description to gem
'Sweet enum sugar for your Mongoid documents'
- DESCRIPTION =
Define a long description to gem
<<-DESC Heavily inspired by DDH's ActiveRecord::Enum, this little library is there to help you cut down the cruft in your models and make the world a happier place at the same time. DESC
- HOMEPAGE =
Homepage to project
'https://github.com/dazzl-tv/mongoid-enum'
Class Method Summary collapse
Class Method Details
.configuration ⇒ Object
14 15 16 |
# File 'lib/mongoid/enum/dazzl/configuration.rb', line 14 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
18 19 20 |
# File 'lib/mongoid/enum/dazzl/configuration.rb', line 18 def self.configure yield(configuration) if block_given? end |