Right now I have:
@models = ActiveRecord::Base.send(:subclasses)
But I get this in the log:
DEPRECATION WARNING: subclasses is deprecated and will be removed from Rails 3.0 (use descendants instead). (called from send at /Users/*******/m3p0/app/controllers/roles_controller.rb:50)
What should I replace :subclasses with?
It is in the warning, it says use descendants instead.
Also, these methods are publicly available so you don’t need to use the .send syntax, you can call it explicitly.
Here is the output from one of my apps: