aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-05-24 15:54:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-05-24 15:54:30 -0700
commitd476129691b1dd1e356f386af0532dcb2cd885ee (patch)
treea91a0b08ae5a7c8a0f56673a0dcf8a27df75bcd3 /railties
parentd5dc462cd28c7787735ff9f571869eeb097e25f7 (diff)
downloadrails-d476129691b1dd1e356f386af0532dcb2cd885ee.tar.gz
rails-d476129691b1dd1e356f386af0532dcb2cd885ee.tar.bz2
rails-d476129691b1dd1e356f386af0532dcb2cd885ee.zip
do not set the ENGINE_PATH to nil
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/tasks/engine.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/engine.rake b/railties/lib/rails/tasks/engine.rake
index eea8abe7d2..70370be3f5 100644
--- a/railties/lib/rails/tasks/engine.rake
+++ b/railties/lib/rails/tasks/engine.rake
@@ -60,7 +60,7 @@ namespace :db do
end
def find_engine_path(path)
- return if path == "/"
+ return File.expand_path(Dir.pwd) if path == "/"
if Rails::Engine.find(path)
path