Class: Summon::Schema

Inherits:
Object show all
Defined in:
lib/summon/schema.rb

Defined Under Namespace

Modules: ClassMethods, Initializer, InstanceMethods Classes: Attr

Class Method Summary collapse

Class Method Details

.inherited(mod) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/summon/schema.rb', line 4

def self.inherited(mod)            
  class << mod
    include Summon::Schema::Initializer
    include Summon::Schema::ClassMethods
  end
  mod.module_eval do
    include Summon::Schema::InstanceMethods
  end
  mod.summon!
end