diff --git a/lib/hotwire/spark/engine.rb b/lib/hotwire/spark/engine.rb index 677c3a9e..5882bec8 100644 --- a/lib/hotwire/spark/engine.rb +++ b/lib/hotwire/spark/engine.rb @@ -18,6 +18,10 @@ class Engine < ::Rails::Engine end end + initializer "hotwire_spark.assets" do |app| + app.config.assets.paths << root.join("app/assets/javascripts") + end + initializer "hotwire_spark.install" do |application| Hotwire::Spark.install_into application if Hotwire::Spark.enabled? end