From 0aed259daca8e2e8d328d9334e52d713513af7c7 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sat, 21 Dec 2024 17:58:43 +0100 Subject: [PATCH] This method can be made private Not invoking it to configure the suite anymore --- lib/hotwire/spark/installer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/hotwire/spark/installer.rb b/lib/hotwire/spark/installer.rb index 8eefb6e..ab53d0b 100644 --- a/lib/hotwire/spark/installer.rb +++ b/lib/hotwire/spark/installer.rb @@ -11,14 +11,14 @@ def install monitor_paths end - def configure_middleware - middleware.use Hotwire::Spark::Middleware - end - private attr_reader :application delegate :middleware, to: :application + def configure_middleware + middleware.use Hotwire::Spark::Middleware + end + def configure_cable_server application.routes.prepend do mount Hotwire::Spark.cable_server => "/hotwire-spark", internal: true, anchor: true