diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-05 09:48:32 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-05 09:48:32 +0200 |
commit | 4a4ff148ff85a148b5313dcc429e21b2d32057d4 (patch) | |
tree | e4ef288d1ffaa4dce808d820186e5f2e825f553a /railties | |
parent | e3acdcfbf349e416c63f4c56170e9d82f7b1b1d0 (diff) | |
download | rails-4a4ff148ff85a148b5313dcc429e21b2d32057d4.tar.gz rails-4a4ff148ff85a148b5313dcc429e21b2d32057d4.tar.bz2 rails-4a4ff148ff85a148b5313dcc429e21b2d32057d4.zip |
Use RbConfig instead of Config for 1.9.3 compatibility.
Diffstat (limited to 'railties')
-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 ba89bce928..3981e8dfd5 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -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 |