alchemy_cms 8.4.5 → 8.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/alchemy/engine.rb +8 -3
- data/lib/alchemy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 002da464bbfbc51b7ec5f2adcf7e4af135a3f6979689d4a1a97f1f90bef9b73e
|
|
4
|
+
data.tar.gz: ede1b0ac29a99581e6eaa05ca820a46458a6a3db0e1376bbbeba8d11901e0770
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 662561de6571c0ff64ea2f30c14cdf83f1e633c3977a3e587bc6a79f4f1d1526b65bacdb16eee5c726391d311d6ac3492fe9f2b0f99929c9469758a017fcd092
|
|
7
|
+
data.tar.gz: b9e8669e12466ea722789cd6a1c9658d5aad3a1ee0289aaf3b7341073f1221cd6366c24258e0fb7e5162c70178eefa4e50c73a598d42285e1325b1cc909c97d5
|
data/lib/alchemy/engine.rb
CHANGED
|
@@ -54,12 +54,17 @@ module Alchemy
|
|
|
54
54
|
)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# Runs
|
|
58
|
-
# initializer
|
|
57
|
+
# Runs as a prepare block, so that importmaps added from an application
|
|
58
|
+
# initializer are picked up, but the source paths still reach the asset
|
|
59
|
+
# paths before Sprockets copies them in its `after_initialize`.
|
|
59
60
|
# It must not run again on reload: every entry it adds below lands in a
|
|
60
61
|
# registry that is never pruned.
|
|
61
62
|
initializer "alchemy.importmap" do |app|
|
|
62
|
-
|
|
63
|
+
importmap_loaded = false
|
|
64
|
+
app.config.to_prepare do
|
|
65
|
+
next if importmap_loaded
|
|
66
|
+
importmap_loaded = true
|
|
67
|
+
|
|
63
68
|
watch_paths = []
|
|
64
69
|
|
|
65
70
|
Alchemy.config.admin_importmaps.each do |admin_import|
|
data/lib/alchemy/version.rb
CHANGED