Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /