lib/ahoy/engine.rb in ahoy_matey-4.0.1 vs lib/ahoy/engine.rb in ahoy_matey-4.0.2
- old
+ new
@@ -24,7 +24,14 @@
end
alias_method :call_without_quiet_ahoy, :call
alias_method :call, :call_with_quiet_ahoy
end
end
+
+ # for importmap
+ if defined?(Importmap)
+ initializer "ahoy.importmap", after: "importmap" do |app|
+ app.config.assets.precompile << "ahoy.js"
+ end
+ end
end
end