Whilst looking into some of the initialization code, I came across this at line 20 in rails-1.1.6/environments/boot.rb
environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join
This, it seems, is intended to pull non commented lines out of environment.rb.
Although a trivial point, this regexp misses indented # and so still includes most of the commented lines.
Would this be better as?
.......reject { |l| l =~ /^\s*#/ }.join
Also in the subsequent line, [^#] would seem to serve no purpose since a line starting with # would have been rejected..
Tonypm