diff options
author | Anil Wadghule <anildigital@gmail.com> | 2010-04-14 00:56:58 +0530 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-13 12:39:03 -0700 |
commit | 518891f4907c9967cad22552eac110e81a0d44c0 (patch) | |
tree | 415741bfd95a70769fa5f8cbc7b6139392196d46 /railties/guides/source/initialization.textile | |
parent | 8116a2b981b7382c467f84597e92156385f037d7 (diff) | |
download | rails-518891f4907c9967cad22552eac110e81a0d44c0.tar.gz rails-518891f4907c9967cad22552eac110e81a0d44c0.tar.bz2 rails-518891f4907c9967cad22552eac110e81a0d44c0.zip |
Use correct RUBY_PLATFORM regex for Windows env [#4385 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/guides/source/initialization.textile')
-rw-r--r-- | railties/guides/source/initialization.textile | 2 |
1 files changed, 1 insertions, 1 deletions
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 </ruby> |