We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7317247 commit 5cbbccaCopy full SHA for 5cbbcca
lib/react/rails/railtie.rb
@@ -35,11 +35,7 @@ class Railtie < ::Rails::Railtie
35
# Rails checks these objects for changes:
36
app.reloaders << ActiveSupport::FileUpdateChecker.new([], reload_paths)
37
# Reload renderers in dev when files change
38
- if Gem::Version.new(::Rails::VERSION::STRING) >= Gem::Version.new("5.x")
39
- ActiveSupport::Reloader.to_prepare { React::ServerRendering.reset_pool }
40
- else
41
- ActionDispatch::Reloader.to_prepare { React::ServerRendering.reset_pool }
42
- end
+ config.to_prepare { React::ServerRendering.reset_pool }
43
end
44
45
# Include the react-rails view helper lazily
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments