From f0fc515eac953b83bcee24089c649f61cf7bc5f5 Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Mon, 31 Jan 2022 16:26:14 +0300 Subject: [PATCH] fix: only run embedded server if AnyCable is enabled --- lib/anycable/rails/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/anycable/rails/railtie.rb b/lib/anycable/rails/railtie.rb index 5a4e4d5..08c0dde 100644 --- a/lib/anycable/rails/railtie.rb +++ b/lib/anycable/rails/railtie.rb @@ -70,7 +70,7 @@ class Railtie < ::Rails::Railtie # :nodoc: # Since Rails 6.1 if respond_to?(:server) server do - next unless AnyCable.config.embedded? + next unless AnyCable.config.embedded? && AnyCable::Rails.enabled? require "anycable/cli" AnyCable::CLI.embed!