Aha! This seems to work for me, thanks. I checked the docs for the DescendantSet class, and it appears all its methods are private. Is there a proper way to iterate over all its elements?
I see the -each method, but since that's private I'm wondering if this is the best way to go (in case, for example, it changes in the future). Thanks so much for your help! Jason. On 2012-05-02, at 10:24 AM, Rhett Sutphin wrote: > You can use `DataMapper::Model.descendants` to get all the registered model > classes. -- 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.
