diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-22 16:43:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-22 16:52:39 -0700 |
commit | 1ca1b1ab9176c780989be7e5a11d27fb97fe663a (patch) | |
tree | a4d8f40e170109733adb997ac184247feaa46c3f /railties/lib | |
parent | 580333fdc200eb7d2422f087e28d912bc324c42c (diff) | |
download | rails-1ca1b1ab9176c780989be7e5a11d27fb97fe663a.tar.gz rails-1ca1b1ab9176c780989be7e5a11d27fb97fe663a.tar.bz2 rails-1ca1b1ab9176c780989be7e5a11d27fb97fe663a.zip |
use RUBY_PLATFORM in case of cross compiled ruby
Diffstat (limited to 'railties/lib')
-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 33bd339b46..3dc5a29d4a 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -652,7 +652,7 @@ module Rails root = File.exist?("#{root_path}/#{flag}") ? root_path : default raise "Could not find root path for #{self}" unless root - RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? + RUBY_PLATFORM =~ /mswin|mingw/ ? Pathname.new(root).expand_path : Pathname.new(root).realpath end |