From 3f870f607d2c1f422d0699e85017e5289aebef97 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 22 May 2012 17:22:06 -0700 Subject: use File.realpath and avoid making Pathname objects --- railties/lib/rails/engine.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 3dc5a29d4a..b327dd1e4a 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -652,8 +652,7 @@ module Rails root = File.exist?("#{root_path}/#{flag}") ? root_path : default raise "Could not find root path for #{self}" unless root - RUBY_PLATFORM =~ /mswin|mingw/ ? - Pathname.new(root).expand_path : Pathname.new(root).realpath + File.realpath root end def default_middleware_stack -- cgit v1.2.3