Skip to content
Browse files

use RUBY_PLATFORM in case of cross compiled ruby

  • Loading branch information...
1 parent 580333f commit 1ca1b1ab9176c780989be7e5a11d27fb97fe663a @tenderlove tenderlove committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/engine.rb
View
2 railties/lib/rails/engine.rb
@@ -652,7 +652,7 @@ def find_root_with_flag(flag, default=nil)
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

0 comments on commit 1ca1b1a

Please sign in to comment.
Something went wrong with that request. Please try again.