Bryan Says...

Rants, opinions, and other stuff I find interesting.

Rails Initializer Directory for Rails 1.1

The functionality introduced by Rails Changeset 6212 was way too good to not be backported from Edge. I introduce to you the Initializer Directory plugin. It will allow you to clean out your environment.rb file by giving you an init.d style directory: RAILS_ROOT/config/initializers. I urge you to try it out, and give me feedback. As a caveat, I only tested this functionality with 1.1, YMMV with 1.2. (Hopefuly this functionality will make it into 1.2.3)

cd rails_app
ruby ./script/plugin install http://smarticus.googlecode.com/svn/trunk/plugins/initializer_directory/