mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use RbConfig instead of Config for 1.9.3 compatibility.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user