aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/boot.rb
diff options
context:
space:
mode:
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