Hi, On May 2, 2012, at 8:25 AM, jbrennan wrote:
> I'm trying to whip up some debug pages based around all the models in my > repository and I'm wondering if I can do this dynamically. Is there a way to > list all the models in a given repository? > > I'm not looking to list all the *objects* in the repo (not yet at least), but > all the different kinds of models and their properties. I poked around the > docs a little bit but was unable to find what I was looking for. > > Any way to do this? You can use `DataMapper::Model.descendants` to get all the registered model classes. Rhett > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/datamapper/-/4BA_b0TnyzsJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
