Method: FReCon::Model.descendants

Defined in:
lib/frecon/model.rb

.descendantsObject

Public: Gets the descendants for the Model class.

Returns all of the descendants for the Model class.



79
80
81
82
83
# File 'lib/frecon/model.rb', line 79

def self.descendants
  ObjectSpace.each_object(Class).select do |possible_child|
    possible_child < self
  end
end