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 2a2a5ec commit 713864fCopy full SHA for 713864f
lib/turbo/engine.rb
@@ -16,8 +16,8 @@ class Engine < Rails::Engine
16
#{root}/app/jobs
17
)
18
19
- initializer "turbo.no_action_cable" do
20
- Rails.autoloaders.once.do_not_eager_load(Dir["#{root}/app/channels/turbo/*_channel.rb"]) unless defined?(ActionCable)
+ initializer "turbo.no_action_cable", before: :set_eager_load_paths do
+ config.eager_load_paths.delete("#{root}/app/channels") unless defined?(ActionCable)
21
end
22
23
# If you don't want to precompile Turbo's assets (eg. because you're using webpack),
0 commit comments