From db90e19085f8574c47aeff848214dd4f59b0ee05 Mon Sep 17 00:00:00 2001 From: Joshua Young Date: Sun, 26 Jan 2025 14:15:12 +1000 Subject: [PATCH] Support direct puma process --- lib/hotwire-spark.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hotwire-spark.rb b/lib/hotwire-spark.rb index 79e53a8..015d053 100644 --- a/lib/hotwire-spark.rb +++ b/lib/hotwire-spark.rb @@ -24,7 +24,7 @@ def install_into(application) end def enabled? - enabled && defined?(Rails::Server) + enabled && (defined?(Rails::Server) || $PROGRAM_NAME =~ /puma/) end def cable_server