Hey smart people.  I'm trying to solve a problem I am sure has been 
solved by someone out there already, and am hoping one of them is on 
this list.

Here goes, as simply as I can make it:

I am building a set of engine-ized plugins for core services I want to 
reuse (like C++ libraries).  So, for example, I have a calendar plugin, 
a user management plugin, a file management plugin...

I want to have relationships between these plugins, for example, have a 
User optionally has_one() a Calendar.  This should *only* happen if the 
calendar plugin is installed.

So, first question:

    How do I figure out, safely and consistently, that a given plugin 
has been installed?  I seem to recall some sort of list being maintained 
by Rails, but couldn't find where I read about it.  Is there such a 
list?  When does it get initialized?

Second question:

    I'm planning on creating the relationships using polymorphic 
associations.  Is there a smarter/better way to do this?  Has anyone 
tried cross-plugin associations?

Thanks for any thoughts/advice on this.  I'm *really* enjoying the 
functionality the engines plugin provides.  (Thanks, James!)

-Rob Morris
_______________________________________________
Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to