Ok, say I have Sequel connected to a database, and I've loaded a bunch
of models related to the tables from a "lib" directory.

Is there a way to ask Sequel which models were loaded? Or, instead, if
I iterate over the tables, is there a way to ask Sequel which model is
associated with a particular table?

I guess I could open the "lib" directory and iterate over the files
there, and "require" each one in turn, which would also let me build a
table => model relationship but that seems so inelegant.

Seems like there'd be a way to do this via reflection or
introspection, but I haven't found the right chain of methods or
attributes yet to get to one of those places.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en.

Reply via email to