snaptable 0.8.5 → 0.8.6

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
  SHA1:
3
- metadata.gz: 771f7b73d9fdefb0822b71a9c248e0abd84f3f32
4
- data.tar.gz: 6ecd6cf32d0c2f5d0f17bea7b0a43db31f63d7de
3
+ metadata.gz: df5de2ef7546d0239eede95d41de5cae8a2f033e
4
+ data.tar.gz: 08ae93ee6ffc8e9535b686de71ddd80dbe3bcc82
5
5
  SHA512:
6
- metadata.gz: ee2912b1c6aa684255d249f7fa479beaa41d280b7f3b14b419f20dbe6c2eef343507733add2eeb4d0cc1ade852e65ea6498c8ac80b64f4c7ad397129a279693d
7
- data.tar.gz: 803874912e43a992fe0330a14e4252e9165d31e198a7aa4359a9704cd9b7ac1d97a14d2c1a39a6db5fb80b3a218344490de77261857ae507e11773eb8df645e6
6
+ metadata.gz: 874ce743885387be79bfe779a82645caccf880ccbf19e45583f253df212233d646099f51d617132c31f0cc902cf4d394bf52fa93f922c3121c1423fb50a7dc14
7
+ data.tar.gz: 0f8aaaff1bd93b04bc9d4f81519e6250d328af105c0d8b6908f183aeaf8a46cdee58ece8149864e30992546d7496d98cb9b31ab0794b4674d1a475671e055615
@@ -38,7 +38,7 @@ module Snaptable
38
38
  if attr_value.is_a?(Date) || attr_value.is_a?(Time) || attr_value.is_a?(DateTime)
39
39
  l attr_value, format: :snaptable
40
40
  elsif attribute.to_s.in? enums
41
- t "#{model.model_name.singular}.#{attribute.to_s.pluralize}.#{attr_value}"
41
+ t "#{model.model_name.i18n_key}.#{attribute.to_s.pluralize}.#{attr_value}"
42
42
  else
43
43
  attr_value
44
44
  end.to_s
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "0.8.5"
2
+ VERSION = "0.8.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr