diff options
author | Philip Arndt <parndt@gmail.com> | 2012-05-24 16:29:08 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-05-24 17:42:31 +1200 |
commit | 66db0b9440e4db594c951d38f641e1910fd44db3 (patch) | |
tree | 865b5307579c3662d93e9970a42cff796d696989 | |
parent | 880481a355e0017c43d6ff14b2d1a657548d06bf (diff) | |
download | rails-66db0b9440e4db594c951d38f641e1910fd44db3.tar.gz rails-66db0b9440e4db594c951d38f641e1910fd44db3.tar.bz2 rails-66db0b9440e4db594c951d38f641e1910fd44db3.zip |
Fixed backward incompatibility for engines.
- Many engines rely on being able to join directories to the Rails root:
Rails.root.join('somedir')
- This was now impossible because Rails.root returned a String:
NoMethodError: undefined method `join' for "/code/myrailsapp":String
- This was broken in 4001835db00ce44cb75bca33ec02cd76b8ccc790
-rw-r--r-- | 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 619c76206d..4c7199a2e2 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 |