svelte-on-rails 9.2.0 → 9.3.0
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/README.md +0 -1
- data/lib/svelte_on_rails/lib/to_svelte.rb +2 -0
- 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: 3304b801b3639d962693847e44037b4671ca8e98332f9b21b430e70b2d1f82d9
|
|
4
|
+
data.tar.gz: ff488ba08eb9f180f969c4c518d9aaba264036a44e0ce925151e1a3a626e2db7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55ac8a0bff036eb47702ce77f681f97471460feeae010e3888c6bc5c325ba79e307ee1a1e9a441ca5748f18e05fec9847e8b46b07e65a7d327430d65923770b3
|
|
7
|
+
data.tar.gz: f5181e016d6aaf07ad97dd18765210024914e47493e897ee67171f2aa456bb7d254c278f545cdf7d997670e4d7c9e120ff8001dac26375386878cb42b7406196
|
data/README.md
CHANGED
|
@@ -40,7 +40,6 @@ If you have issues, please open one, and contributors are welcome!
|
|
|
40
40
|
- tested on
|
|
41
41
|
- ruby 3.4.2 / Rails 8.1.2
|
|
42
42
|
- ruby 3.2.2 / rails 7.1
|
|
43
|
-
- ruby 2.7.5 / rails 6.1
|
|
44
43
|
- vite@6 (v7 not yet tested, see issues)
|
|
45
44
|
- turbolinks and hotwired/turbo
|
|
46
45
|
- vite_rails (the installer will install it by option --full or --vite)
|
|
@@ -196,6 +196,8 @@ module SvelteOnRails
|
|
|
196
196
|
|
|
197
197
|
@labels["#{obj.to_s.underscore}_labels"] ||= {}
|
|
198
198
|
@labels["#{obj.to_s.underscore}_labels"][attr.to_s] ||= obj.human_attribute_name(attr)
|
|
199
|
+
@labels["#{obj.to_s.underscore}_labels"]['model_name'] ||= obj.model_name.human
|
|
200
|
+
@labels["#{obj.to_s.underscore}_labels"]['model_name_plural'] ||= obj.model_name.human(count: :many)
|
|
199
201
|
|
|
200
202
|
end
|
|
201
203
|
end
|