Re: plugin dependencies

James Adam
Fri, 21 Sep 2007 08:12:31 -0000

On 9/21/07, DHH <david.heinemeier@gmail.com>
wrote:
>
> > If every plugin''s lib was in the load path *before* any
plugin could
> > start playing around or monkeypatching, many situations where you
> > might want to explicitly ensure a plugin was loaded can be made to go
> > away.
>
> Can you look into writing a patch for that?

Absolutely.

> For the scenarios where you do need some load order, I''ve
requested
> http://dev.rubyonrails.org/ticket/9613 -- it takes just enough pain
> out of config.plugins to make it bearable, but still leaves enough in
> that people won''t go crazy with dependency overload. Some one PDI
this
> likely-just-a-few-lines patch.

This is the mechanism I stuck with myself, despite requests to add
some kind of dependency management via the engines plugin. This is a
situation where the 80/20 (99/1?) rule can easily be applied.

--
* J *
  ~