Use RbConfig instead of Config for 1.9.3 compatibility.

This commit is contained in:
José Valim
2010-10-05 09:48:32 +02:00
parent e3acdcfbf3
commit 4a4ff148ff

View File

@@ -535,7 +535,7 @@ module Rails
root = File.exist?("#{root_path}/#{flag}") ? root_path : default
raise "Could not find root path for #{self}" unless root
Config::CONFIG['host_os'] =~ /mswin|mingw/ ?
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ?
Pathname.new(root).expand_path : Pathname.new(root).realpath
end