diff options
author | kennyj <kennyj@gmail.com> | 2012-10-08 20:53:25 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-10-08 20:53:25 +0900 |
commit | 4756ced051912cf22e7657c446d9a675306bcbda (patch) | |
tree | b5fc157640f6a59a51ce4a765eae24dc77512aa8 /activerecord | |
parent | 800604e4452dcc39849cbab087d96c3b7ca44e47 (diff) | |
download | rails-4756ced051912cf22e7657c446d9a675306bcbda.tar.gz rails-4756ced051912cf22e7657c446d9a675306bcbda.tar.bz2 rails-4756ced051912cf22e7657c446d9a675306bcbda.zip |
Should use app.paths instead of specific path.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index b11483de8c..d7e35fb771 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -129,7 +129,8 @@ module ActiveRecord end initializer "active_record.add_watchable_files" do |app| - config.watchable_files.concat ["#{app.root}/db/schema.rb", "#{app.root}/db/structure.sql"] + path = app.paths["db"].first + config.watchable_files.concat ["#{path}/schema.rb", "#{path}/structure.sql"] end config.after_initialize do |app| |