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/guides/source/initialization.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides/source/initialization.textile') diff --git a/railties/guides/source/initialization.textile b/railties/guides/source/initialization.textile index d8d119f608..ddc75b5f28 100644 --- a/railties/guides/source/initialization.textile +++ b/railties/guides/source/initialization.textile @@ -2636,7 +2636,7 @@ The method +find_with_root_flag+ is defined on +Rails::Engine+ (the superclass o 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 -- cgit v1.2.3