lib/generators/declare_schema/migration/migrator.rb
# Returns an array of model classes that *directly* extend
# ActiveRecord::Base, excluding anything in the CGI module
Returns an array of model classes that *directly* extend
ActiveRecord::Base, excluding anything in the CGI module
Returns an array of model classes that * directly * extend ActiveRecord :: Base excluding anything in the CGI module
def table_model_classes
          load_rails_models
          ActiveRecord::Base.send(:descendants).select do |klass|
            klass.base_class == klass && !klass.name.starts_with?("CGI::")
          end
        end
def table_model_classes load_rails_models ActiveRecord :: Base . send ( :descendants ) . select do | klass | klass . base_class == klass && ! klass . name . starts_with? ( "CGI::" ) end end
Returns an array of model classes that *directly* extend
ActiveRecord::Base, excluding anything in the CGI module
Returns an array of model classes that * directly * extend ActiveRecord :: Base excluding anything in the CGI module