Skip to content

Commit 5eba684

Browse files
author
Kirill Platonov
authored
Update guide for engines (#49)
1 parent a5740f0 commit 5eba684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ You can combine multiple import maps by drawing their definitions onto the `Rail
153153
module MyEngine
154154
class Engine < ::Rails::Engine
155155
# ...
156-
initializer "my-engine.importmap" do |app|
157-
app.config.importmap.draw(Engine.root.join("config/importmap.rb"))
156+
initializer "my-engine.importmap", after: "importmap" do |app|
157+
app.importmap.draw(Engine.root.join("config/importmap.rb"))
158158
end
159159
end
160160
end

0 commit comments

Comments
 (0)