lib/ahoy/engine.rb in ahoy_matey-4.0.2 vs lib/ahoy/engine.rb in ahoy_matey-4.0.3

- old
+ new

@@ -26,11 +26,11 @@ alias_method :call, :call_with_quiet_ahoy end end # for importmap - if defined?(Importmap) - initializer "ahoy.importmap", after: "importmap" do |app| + initializer "ahoy.importmap" do |app| + if defined?(Importmap) app.config.assets.precompile << "ahoy.js" end end end end