Wouldn’t that return the objects of class ActiveRecord::Base instead
of the classes themselves?
Looking through the Base.rb, I saw that there’s a method called
“subclasses” that’s protected. Just to clarify my original question,
I’m trying to do this from a class outside of ActiveRecord::Base.
You might query the ObjectSpace.