Method: Sequel::Model::Associations::ClassMethods#inherited

Defined in:
lib/sequel/model/associations.rb

#inherited(subclass) ⇒ Object

Copy the association reflections to the subclass



675
676
677
678
# File 'lib/sequel/model/associations.rb', line 675

def inherited(subclass)
  super
  subclass.instance_variable_set(:@association_reflections, @association_reflections.dup)
end