We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42137e0 commit ef55438Copy full SHA for ef55438
lib/requestjs/engine.rb
@@ -7,7 +7,9 @@ class Engine < ::Rails::Engine
7
end
8
9
initializer "requestjs.importmap", before: "importmap" do |app|
10
- app.config.importmap.paths << Engine.root.join("config/importmap.rb")
+ if Rails.application.respond_to?(:importmap)
11
+ app.config.importmap.paths << Engine.root.join("config/importmap.rb")
12
+ end
13
14
15
0 commit comments