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/lib/rails/engine.rb | |
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/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |