Skip to content
Browse files

Merge pull request #6471 from parndt/rails_root_should_be_join_able

Fixes possible backward incompatibility
  • Loading branch information...
2 parents 95c49f2 + 66db0b9 commit abccf82c8b1010736c72058948d42acb7127f82a @josevalim josevalim committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/engine.rb
View
2 railties/lib/rails/engine.rb
@@ -652,7 +652,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
- File.realpath root
+ Pathname.new File.realpath root
end
def default_middleware_stack

0 comments on commit abccf82

Please sign in to comment.
Something went wrong with that request. Please try again.