diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-21 08:11:58 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-01-31 09:49:48 +0900 |
commit | 3ffa5a15cc966c80029043c77adb3184422e33b3 (patch) | |
tree | 284537e141bd69f8143aa953ec43682e4593573a /activerecord/lib | |
parent | a00c36feea6c0271b5ad48a949ef294514fdef52 (diff) | |
download | rails-3ffa5a15cc966c80029043c77adb3184422e33b3.tar.gz rails-3ffa5a15cc966c80029043c77adb3184422e33b3.tar.bz2 rails-3ffa5a15cc966c80029043c77adb3184422e33b3.zip |
make rake proxy work in rails engines
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 38916f7376..f4200e96b7 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -40,7 +40,7 @@ module ActiveRecord task :load_config do ActiveRecord::Tasks::DatabaseTasks.database_configuration = Rails.application.config.database_configuration - if defined?(ENGINE_PATH) && engine = Rails::Engine.find(ENGINE_PATH) + if defined?(ENGINE_ROOT) && engine = Rails::Engine.find(ENGINE_ROOT) if engine.paths['db/migrate'].existent ActiveRecord::Tasks::DatabaseTasks.migrations_paths += engine.paths['db/migrate'].to_a end |