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