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