Module: MongoMapper::Plugins::Descendants::ClassMethods

Defined in:
lib/mongo_mapper/plugins/descendants.rb

Instance Method Summary collapse

Instance Method Details

#descendantsObject



11
12
13
# File 'lib/mongo_mapper/plugins/descendants.rb', line 11

def descendants
  @descendants ||= []
end

#inherited(descendant) ⇒ Object



6
7
8
9
# File 'lib/mongo_mapper/plugins/descendants.rb', line 6

def inherited(descendant)
  descendants << descendant
  super
end