module Enumerize::MongoidSupport
Public Instance Methods
enumerize(name, options={})
click to toggle source
Calls superclass method
# File lib/enumerize/mongoid.rb, line 5 def enumerize(name, options={}) super _enumerize_module.dependent_eval do if self < ::Mongoid::Document include InstanceMethods after_initialize :_set_default_value_for_enumerized_attributes end end end