We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b07e87 commit 5a04f71Copy full SHA for 5a04f71
lib/custom_elements/rails/railtie.rb
@@ -7,10 +7,9 @@ class Railtie < ::Rails::Engine
7
end
8
9
10
- initializer "custom_elements-rails.spark", after: "hotwire_spark.config" do |app|
+ initializer "custom_elements-rails.configure_spark", after: "hotwire_spark.config" do |app|
11
spark_available = app.config.respond_to?(:hotwire) && app.config.hotwire.respond_to?(:spark)
12
if spark_available
13
- puts "spark_available"
14
# Custom elements don't seem to work with morphing
15
Hotwire::Spark.html_reload_method = :replace
16
0 commit comments