Module: Enumerize::ModuleAttributes

Defined in:
lib/enumerize/module_attributes.rb

Instance Method Summary collapse

Instance Method Details

#included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/enumerize/module_attributes.rb', line 5

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