class ActiveRecord::Base

Public Class Methods

descendants() click to toggle source
# File lib/model_manage/active_record_rails_erd.rb, line 3
def self.descendants
  Rails.models
end
inherited(child) click to toggle source
# File lib/model_manage/active_record.rb, line 3
    def self.inherited(child)
  Rails.add_inherit(:models, child)
  p " #{child} inherit #{self}"
  child.class_eval do
    include ModelManage::Base
  end
end