Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use RbConfig instead of Config for 1.9.3 compatibility.

  • Loading branch information...
commit 4a4ff148ff85a148b5313dcc429e21b2d32057d4 1 parent e3acdcf
José Valim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/engine.rb
2  railties/lib/rails/engine.rb
View
@@ -535,7 +535,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
- Config::CONFIG['host_os'] =~ /mswin|mingw/ ?
+ RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ?
Pathname.new(root).expand_path : Pathname.new(root).realpath
end
Please sign in to comment.
Something went wrong with that request. Please try again.