Skip to content

Commit

Permalink
Order methods
Browse files Browse the repository at this point in the history
jorgemanrubia committed Dec 21, 2024
1 parent 57378e2 commit 8b3b8b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/hotwire/spark/installer.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8b3b8b8

Please sign in to comment.