How can I get model names from inside my app?
- by Cameron
I have a bunch of models in a sub-directory that inherit from a model in the models root directory. I want to be able to set a class variable in another model that lists each inherited model class.
i.e
@@groups = sub_models.map do { |model| model.class.to_s }
Not sure how to get at this info though...