aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-10 03:19:27 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-10 03:19:27 +0000
commit9ccbb1356327f658b3012cf2967e6b03ae0ac1ee (patch)
tree561cf89a713e67c7f391207491dc077a8eb3f620 /railties/environments
parent33e9876c00b57e14d30c0629cb6c9805341639a5 (diff)
downloadrails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.tar.gz
rails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.tar.bz2
rails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.zip
Allow double quotes around RAILS_GEM_VERSION also. Closes #10443 [James Cox]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8358 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-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 b71c198db3..1e9f1b109d 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -93,7 +93,7 @@ module Rails
end
def parse_gem_version(text)
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*'([!~<>=]*\s*[\d.]+)'/
+ $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
end
private