From d7de7a79c5a0c24373f90dcc569816c80501d456 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 22 May 2012 19:21:56 -0700 Subject: I guess we have to return a pathname object. o_O --- railties/lib/rails/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index b327dd1e4a..e0950c6929 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -652,7 +652,7 @@ module Rails root = File.exist?("#{root_path}/#{flag}") ? root_path : default raise "Could not find root path for #{self}" unless root - File.realpath root + Pathname.new File.realpath root end def default_middleware_stack -- cgit v1.2.3