One of the handy things missing from Rails, that the engines plugin
tries to provide but which isn’t really core to its functionality, is
a way of inspecting the set of loaded plugins while the application is
This is achieved via the Engines.plugins method (which is again
aliased as Rails.plugins, for backwards compatibility). We use this
mostly when dealing with public assets from within plugins, but it’s
also useful for generating RDoc for plugins.
In fact, the only thing the custom engines plugin loader does is to
add plugins to this set, so if Rails itself implemented it, we could
simplify the plugin greatly. Maybe even get rid of the ‘boot’ line,
which needs to be added to the top of environment.rb!
Here’s my ticket, hidden under the guise of being about the plugin