|Sent on:||Wednesday, January 30, 2008 11:15 AM|
Can anyone tell me how I can dynamically enumerate the associations defined for a model? I'm developing an inventory application in which I need to identify the possible sub-components for any given component. I've defined the parts explosion hierarchy through associations in the models for the various component types, e.g.
Class Component1 < ActiveRecord::Base
To manage recursive processes, I'd like to be able to identify all the tables I need to search to grab all the possible sub-components for any component, as well as the components to which any sub-component may belong. Does anyone know how to do that or where I might look to figure that out?
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Mike Rood ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Mike Rood, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup.com Customer Service: [address removed]
632 Broadway New York NY 10012 USA