Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Should use app.paths instead of specific path.

  • Loading branch information...
commit 4756ced051912cf22e7657c446d9a675306bcbda 1 parent 800604e
@kennyj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activerecord/lib/active_record/railtie.rb
View
3  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|
Please sign in to comment.
Something went wrong with that request. Please try again.