Module: ModelManage::Base

Defined in:
lib/model_manage/base.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/model_manage/base.rb', line 3

def self.included(base)
  base.class_eval do
    extend  ModelManage::ClassMethods
    forms_field = superclass.forms.dup rescue {}.with_indifferent_access
    base.const_set :FORMS, forms_field
  end
end