Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Should use app.paths instead of specific path. #7872

Merged
merged 1 commit into from Oct 8, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Split
@@ -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|