Module: MultipleTableInheritance::Child::Base

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

Defined Under Namespace

Modules: AttributeMethods, ClassMethods, DelegateMethods, FinderMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.default_optionsObject



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

def self.default_options
  { :dependent => :destroy, :methods => false }
end

.included(base) ⇒ Object



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

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