Skip to content

Commit cdecd67

Browse files
committed
Make sure it adds the javascripts path to the assets path
Fix #16
1 parent 7840812 commit cdecd67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/hotwire/spark/engine.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class Engine < ::Rails::Engine
1212
html_paths: %w[ app/controllers app/helpers app/models app/views ],
1313
stimulus_paths: %w[ app/javascript/controllers ]
1414

15+
initializer "mission_control-jobs.assets" do |app|
16+
app.config.assets.paths << root.join("app/assets/javascripts")
17+
end
18+
1519
initializer "hotwire_spark.config" do |app|
1620
config.hotwire.spark.each do |key, value|
1721
Hotwire::Spark.send("#{key}=", value)

0 commit comments

Comments
 (0)