aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-13 09:19:58 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-13 09:29:18 +0100
commitcd3033eb627f408b71a7adf98c350e2c01115c33 (patch)
tree6acb4271c4e6040fb656ed0247c0daa12a888254 /railties/lib/rails/application.rb
parent148d15d8244f72e2f5b3f2cc9087a43f9e35075f (diff)
downloadrails-cd3033eb627f408b71a7adf98c350e2c01115c33.tar.gz
rails-cd3033eb627f408b71a7adf98c350e2c01115c33.tar.bz2
rails-cd3033eb627f408b71a7adf98c350e2c01115c33.zip
Add config.file_watcher so developers can provide their own watchers (for instance, hooking on fsevents).
Diffstat (limited to 'railties/lib/rails/application.rb')
-rw-r--r--railties/lib/rails/application.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb
index aa6608d49e..35fae24297 100644
--- a/railties/lib/rails/application.rb
+++ b/railties/lib/rails/application.rb
@@ -1,5 +1,4 @@
require 'active_support/core_ext/hash/reverse_merge'
-require 'active_support/file_update_checker'
require 'fileutils'
require 'rails/plugin'
require 'rails/engine'
@@ -135,7 +134,7 @@ module Rails
end
if config.reload_classes_only_on_change
- reloader = ActiveSupport::FileUpdateChecker.new(watchable_args, true, &callback)
+ reloader = config.file_watcher.new(watchable_args, true, &callback)
self.reloaders << reloader
# We need to set a to_prepare callback regardless of the reloader result, i.e.
# models should be reloaded if any of the reloaders (i18n, routes) were updated.