Engines 2.0 (ish)
Hi all,
Just a quick note to let you know, should it be relevant, that we're readied a new release of the Engines plugin, revamped and ready for Rails 2.0, and would absolutely love for you to start using it and sending feedback about what's broken, what's missing and what could be improved.
Grab the plugin here, check out the README, and find out more after the cut...
As Marcel described a while back, the way that plugins are loaded in Edge Rails has changed:
If you need to hook into how plugins are loaded, you can define a subclass of Rails::Plugin::Loader, then register your custom class to be the class that handles plugin loading using the new plugin_loader configuration option in your config/environement.rb
This is obviously a good thing; in the past, the engines plugin had to expend a relatively large amount of effort to work with Rails' own plugin loading system whilst providing the flexibility that we need; now we don't have to struggle anymore.
So, how to use the new release: in order to work with the new plugin loading mechanism in Rails 2.0, you'll need to add a line to environment.rb, just after the require of Rails' boot file:
require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
After that, you're good to go. Kick the tires, take it for a spin around the block, and please do let me know how it runs. There may be problems, we'll try and resolve them as you guys report them back.
I'd also like to highlight the sterling efforts of Sven Fuchs, Josh Ferguson, and everyone else who's contributed ideas and patches for this iteration. Thanks guys!