Skip to content

Commit bbb1ff1

Browse files
committed
use context-specific file checker
1 parent 5cbbcca commit bbb1ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react/rails/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Railtie < ::Rails::Railtie
3333
end
3434

3535
# Rails checks these objects for changes:
36-
app.reloaders << ActiveSupport::FileUpdateChecker.new([], reload_paths)
36+
app.reloaders << app.config.file_watcher.new([], reload_paths)
3737
# Reload renderers in dev when files change
3838
config.to_prepare { React::ServerRendering.reset_pool }
3939
end

0 commit comments

Comments
 (0)