Module: Enumerize::ModuleAttributes

Defined in:
lib/enumerize/module_attributes.rb

Instance Method Summary collapse

Instance Method Details

#included(base) ⇒ Object



3
4
5
6
7
8
# File 'lib/enumerize/module_attributes.rb', line 3

def included(base)
  base.extend Enumerize
  base.send :include, _enumerize_module
  enumerized_attributes.add_dependant base.enumerized_attributes
  super
end