Organizing monkey patches in environment.rb?

Hi --

I've collected these bits in separate files under RAILS_ROOT/lib/ext/

-rw-r--r-- 1 rab rab 63 Jan 22 14:17 lib/ext/array.rb
-rw-r--r-- 1 rab rab 3302 Feb 26 19:23 lib/ext/net_http_post.rb
-rw-r--r-- 1 rab rab 187 Jan 4 14:29 lib/ext/nil_class.rb
-rw-r--r-- 1 rab rab 131 Dec 11 12:20 lib/ext/string.rb
-rw-r--r-- 1 rab rab 1601 Jan 28 09:55 lib/ext/time.rb

And then arrange form to be required within config/environment.rb with:

Dir[File.join(RAILS_ROOT, 'lib', 'ext', '*.rb')].each do |f|
   base = File.basename(f, '.rb')
   require "ext/#{base}"
end

I haven't started any projects in Rails 2.x yet, but will check out the initializers when I do.

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com