diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-22 17:22:06 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-22 17:22:06 -0700 |
commit | 3f870f607d2c1f422d0699e85017e5289aebef97 (patch) | |
tree | 5f89a6a8098606868a2a9ed5d3915d1f1a9d712c /railties | |
parent | 1ca1b1ab9176c780989be7e5a11d27fb97fe663a (diff) | |
download | rails-3f870f607d2c1f422d0699e85017e5289aebef97.tar.gz rails-3f870f607d2c1f422d0699e85017e5289aebef97.tar.bz2 rails-3f870f607d2c1f422d0699e85017e5289aebef97.zip |
use File.realpath and avoid making Pathname objects
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/engine.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |