From 518891f4907c9967cad22552eac110e81a0d44c0 Mon Sep 17 00:00:00 2001 From: Anil Wadghule Date: Wed, 14 Apr 2010 00:56:58 +0530 Subject: Use correct RUBY_PLATFORM regex for Windows env [#4385 state:resolved] Signed-off-by: Jeremy Kemper --- railties/lib/rails/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/engine.rb') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index c284840a38..0f33b40a13 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -119,7 +119,7 @@ module Rails root = File.exist?("#{root_path}/#{flag}") ? root_path : default raise "Could not find root path for #{self}" unless root - RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? + RUBY_PLATFORM =~ /mswin|mingw/ ? Pathname.new(root).expand_path : Pathname.new(root).realpath end end -- cgit v1.2.3