aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/boot.rb
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-04-07 17:48:47 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-04-07 17:48:47 +0000
commit7d3092478cf2f572ffc9a106c2eedc520986e60d (patch)
treed6d67f1975f8772e85fd5b2446df2c0f7dfe226b /railties/environments/boot.rb
parent34a7f668259e54a9027f88321dff808f21556c41 (diff)
downloadrails-7d3092478cf2f572ffc9a106c2eedc520986e60d.tar.gz
rails-7d3092478cf2f572ffc9a106c2eedc520986e60d.tar.bz2
rails-7d3092478cf2f572ffc9a106c2eedc520986e60d.zip
Don't match commented out RAILS_GEM_VERSIONs.
Avoid "Constant already defined" warnings for RAILS_GEM_VERSION. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/boot.rb')
-rw-r--r--railties/environments/boot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
index ff4266ac8a..e638abe1a2 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -14,7 +14,7 @@ if File.directory?("#{RAILS_ROOT}/vendor/rails")
else
require 'rubygems'
- if !defined?(RAILS_GEM_VERSION) && File.read(File.dirname(__FILE__) + '/environment.rb') =~ /RAILS_GEM_VERSION = '([\d.]+)'/
+ if !defined?(RAILS_GEM_VERSION) && File.read(File.dirname(__FILE__) + '/environment.rb') =~ /^\s*RAILS_GEM_VERSION = '([\d.]+)'/
RAILS_GEM_VERSION = $1
end