hotwire_combobox 0.1.17 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotwire_combobox/engine.rb +9 -2
- data/lib/hotwire_combobox/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: 1a775e0facfeadc8692735916fa883634dd6e27b8069f0222d019ac965301640
|
4
|
+
data.tar.gz: 2961eb0baa6b5391e39f804037ece8e0ac7912d625a72bf52d280aa34da7fa41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01630a09a9ab1b665315613ed4e08c9d630c48c9d175f9d72c41284e9c7638cc6c7667f883676899342acb45d041688b1c1ea0cabe7e21269484bdbb7ba8c9e
|
7
|
+
data.tar.gz: 99721fffb5e3a7c26da281024c6102b0c88767b1cd8fec296c6231a04608b3d31a2c6dcf22420314dfdd8b2a2fce7663b5ec5ecc065cc88063c6aa5eae7500e2
|
@@ -19,11 +19,18 @@ module HotwireCombobox
|
|
19
19
|
end
|
20
20
|
|
21
21
|
initializer "hotwire_combobox.importmap", before: "importmap" do |app|
|
22
|
-
|
22
|
+
if Rails.application.respond_to?(:importmap)
|
23
|
+
app.config.importmap.paths << Engine.root.join("config/importmap.rb")
|
24
|
+
end
|
23
25
|
end
|
24
26
|
|
25
27
|
initializer "hotwire_combobox.assets.precompile" do |app|
|
26
|
-
|
28
|
+
if Rails.application.config.respond_to?(:assets)
|
29
|
+
Dir.glob(Engine.root.join("app/assets/**/*.{js,css}")).each do |path|
|
30
|
+
logical_path = Pathname.new(path).relative_path_from(Pathname.new(Engine.root.join("app/assets"))).to_s
|
31
|
+
app.config.assets.precompile << logical_path
|
32
|
+
end
|
33
|
+
end
|
27
34
|
end
|
28
35
|
end
|
29
36
|
end
|