Module: MultipleTableInheritance::Parent::Base

Defined in:
lib/multiple_table_inheritance/parent/base.rb

Defined Under Namespace

Modules: AttributeMethods, ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.default_optionsObject



9
10
11
# File 'lib/multiple_table_inheritance/parent/base.rb', line 9

def self.default_options
  { :subtype => 'subtype' }
end

.included(base) ⇒ Object



4
5
6
7
# File 'lib/multiple_table_inheritance/parent/base.rb', line 4

def self.included(base)
  base.extend ClassMethods
  base.class_attribute :subtype_column
end