Method: Sequel::Plugins::ClassTableInheritance.apply

Defined in:
lib/sequel/plugins/class_table_inheritance.rb

.apply(model, opts = OPTS) ⇒ Object

The class_table_inheritance plugin requires the single_table_inheritance plugin and the lazy_attributes plugin to handle lazily-loaded attributes for subclass instances returned by superclass methods.


192
193
194
195
# File 'lib/sequel/plugins/class_table_inheritance.rb', line 192

def self.apply(model, opts = OPTS)
  model.plugin :single_table_inheritance, nil
  model.plugin :lazy_attributes
end