From 8b3b8b8141f4657a7271bf89169e21b63b02d257 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sat, 21 Dec 2024 22:39:01 +0100 Subject: [PATCH] Order methods --- 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 ab53d0b..f2685f2 100644 --- a/lib/hotwire/spark/installer.rb +++ b/lib/hotwire/spark/installer.rb @@ -15,16 +15,16 @@ def install 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 end end + def configure_middleware + middleware.use Hotwire::Spark::Middleware + end + def monitor_paths register_monitored_paths file_watcher.start