The ramblings of Chad Humphries

Confining plugin load

After reading more of the rails source code I noticed the code below in the 1.2 branches environment.rb

  # Only load the plugins named here, by default all plugins in vendor/plugins are loaded
  # config.plugins = %W( exception_notification ssl_requirement )

I updated to 1.2 and did not regenerate my environment.rb so I missed that you can now put this line inside the Initializer block. This is very nice. A good way to let you have development/production plugins as well if you use this in your respective environment config files.


Written by spicycode

December 24, 2006 at 6:30 pm

Posted in programming

Tagged with ,

%d bloggers like this: