recurrence_ui 0.2.1 → 0.2.2
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/recurrence_ui/engine.rb +6 -6
- data/lib/recurrence_ui/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: 20647bab22cceca506089a2396bd2b3105a1cac2595d8fd17834e60db04fc862
|
|
4
|
+
data.tar.gz: 1c0f8adca5ab3cf2196e7bef7e5b3819b8ac263e80e9f99104b483e574595585
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19b24fe598939465aab719d3080017e0f11fed41a8fc9cd3ab70a967656b1bc45629f7278daf5d27bc1655d53522da125cd912302c77a14def6f00b289714114
|
|
7
|
+
data.tar.gz: d21393711d67f282b4431abcbed85b6eca87d2a55b1d91f7b3ab8415c9d54a1f8ddf0d7a9791cc6fdf4a960f64d052124f0a40134cdddfe14f5030642b53645d
|
data/lib/recurrence_ui/engine.rb
CHANGED
|
@@ -6,11 +6,11 @@ module RecurrenceUi
|
|
|
6
6
|
isolate_namespace RecurrenceUi
|
|
7
7
|
|
|
8
8
|
# 1. Add importmap support for the gem
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
initializer "recurrence_ui.importmap", before: "importmap" do |app|
|
|
10
|
+
if app.config.respond_to?(:importmap)
|
|
11
|
+
app.config.importmap.paths << Engine.root.join("config/importmap.rb")
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
14
|
|
|
15
15
|
# 2. Assets (только стили и картинки, если нужны, т.к. JS обслуживает Importmap)
|
|
16
16
|
initializer "recurrence_ui.assets" do |app|
|
|
@@ -21,7 +21,7 @@ module RecurrenceUi
|
|
|
21
21
|
|
|
22
22
|
# 3. i18n locales
|
|
23
23
|
initializer "recurrence_ui.locales" do |app|
|
|
24
|
-
config.i18n.load_path += Dir[Engine.root.join("config", "locales", "*.{rb,yml}")]
|
|
24
|
+
app.config.i18n.load_path += Dir[Engine.root.join("config", "locales", "*.{rb,yml}")]
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
# Add components to the global ViewComponent / ActionView search
|