diff --git a/lib/action_cable/subscription_adapter/solid_cable.rb b/lib/action_cable/subscription_adapter/solid_cable.rb index 149d411..65944aa 100644 --- a/lib/action_cable/subscription_adapter/solid_cable.rb +++ b/lib/action_cable/subscription_adapter/solid_cable.rb @@ -96,7 +96,7 @@ def channels end def broadcast_messages - Rails.application.reloader.wrap do + Rails.application.executor.wrap do ::SolidCable::Message.broadcastable(channels, last_id). each do |message| broadcast(message.channel, message.payload) diff --git a/test/config_stubs.rb b/test/config_stubs.rb index a1558b0..f6e78af 100644 --- a/test/config_stubs.rb +++ b/test/config_stubs.rb @@ -13,11 +13,11 @@ def config_for(_file) @config end - def reloader - @reloader ||= ReloaderStub.new + def executor + @executor ||= ExectorStub.new end - class ReloaderStub + class ExectorStub def wrap(&block) block.call end