egov_utils 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/egov_utils/grid_helper.rb +1 -1
- data/lib/egov_utils/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: e836fc9a7af7ad919aa1f7ca11cd219b1638658b9d8175c6a42b38a135e82ade
|
4
|
+
data.tar.gz: 39e08a79f21b567fa29782d43ac93f90c82ee34a6ad5c49d3c20d5882a52a481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2102927f04d840b6e0e2e8024bc7bfab2b96db6ed1a12beb9e8b3be9466decab131186d3af40699ef83ffcd09cbc5d43f4917318602f319dfb8270a8cc57ac7d
|
7
|
+
data.tar.gz: 40b49952c43d6ae78e2d6df633e4f9f64749fa7d7fa6f003ed77cd479dc22fa379ffa899d427c25cca765fdd0183c1af8ce50bd462993d7d75e7dcac87f3d5e6
|
@@ -33,7 +33,7 @@ module EgovUtils
|
|
33
33
|
s << ", title: '#{attribute.attribute_name.human}'"
|
34
34
|
s << ", columnTemplate: '<a href=\"#{polymorphic_path(grid.schema.model)}/{id}\">{#{attribute.name}}</div>'" if attribute.name == grid.schema.main_attribute_name
|
35
35
|
if attribute.type == 'list'
|
36
|
-
s << ", format: ( (value) -> I18n.t(value, {
|
36
|
+
s << ", format: ( (value) -> I18n.t('#{attribute.attribute_name.i18n_scoped_list_prefix}'+'.'+value, {defaults: $.map( #{attribute.attribute_name.i18n_list_fallback_prefixes.to_json}, (pref, i)-> {scope: (pref + '.' + value)} )}) ) "
|
37
37
|
end
|
38
38
|
s << "}"
|
39
39
|
end
|
data/lib/egov_utils/version.rb
CHANGED