Permalink
Browse files

Should use app.paths instead of specific path.

  • Loading branch information...
1 parent 800604e commit 4756ced051912cf22e7657c446d9a675306bcbda @kennyj committed Oct 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/railtie.rb
@@ -129,7 +129,8 @@ class Railtie < Rails::Railtie # :nodoc:
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|

0 comments on commit 4756ced

Please sign in to comment.