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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba3f5380fc306ec7b4c507ade387e837754e5e7bd1eaf728e06a4c811b3f7bb3
4
- data.tar.gz: 384d20a4b394d508f88cfc043a2a5764931fc38f84cfd3d4c188cf71d9df52d5
3
+ metadata.gz: e836fc9a7af7ad919aa1f7ca11cd219b1638658b9d8175c6a42b38a135e82ade
4
+ data.tar.gz: 39e08a79f21b567fa29782d43ac93f90c82ee34a6ad5c49d3c20d5882a52a481
5
5
  SHA512:
6
- metadata.gz: 931c4bc8d6ff1450ed72e83f656da51ca77d49ef055c4695c8aa3f2a8a9fe4e1f6151328ca92ab4ba4b7f4c0e750f184e55f169ee2202be3e003b3d5f69f6ba1
7
- data.tar.gz: bcb8838c932c08ce443df2608957f71b49f32548c7c67cc5a3c4a5d870faff962bb52805fc5bc039dda1107b20fd5e195c84e1b5b63e9af7ff2c59c5771b5ca9
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, {scope: 'activerecord.attributes.#{attribute.model.model_name.i18n_key}.#{attribute.name.to_s.pluralize}'}) ) "
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
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr