How to get dependent Model(s) from Controller

How can I get the dependent Model class from a Controller?

I tried PeopleController.model and
PeopleController.dependecies_on(:model) with
no success. I’d like to avoid going through the
Inflector.classify(self.controller_name) workaround.

Thanks.

Cheers,
Marco

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs