From 4db5c16427383804701096c4d531abd1fbabcc13 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Thu, 24 Jun 2010 11:22:27 -0400 Subject: [PATCH] removing Pathname to make app run faster [#4955 state:resolved] --- 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 0a3f21f..4957761 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -120,7 +120,7 @@ module Rails raise "Could not find root path for #{self}" unless root Config::CONFIG['host_os'] =~ /mswin|mingw/ ? - Pathname.new(root).expand_path : Pathname.new(root).realpath + File.expand_path(root) : Pathname.new(root).realpath end end -- 1.6.5.2