snaptable 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/snaptable/constructor/renderer.rb +1 -1
- data/lib/snaptable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55dc0580cf97a22c1845dc289b3f32a3286863b
|
4
|
+
data.tar.gz: 86aaf1bc56afc042624559c2c5f2f924f5ed1230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b320f762bf32aedc96750abb98fd678969c3430a64534cbf4aca3a86b2ceed4e2ad9b3dd0a37d095edf270e2e7f96df00302f17ea0992d053f90cdfb8d4d6004
|
7
|
+
data.tar.gz: 356516f8fac06e0dddb7e2171da2406d63a751579dac918307a044e5548cf90619b83e6b807c3370d09d2dcdedba4bed228ece750e19b5d6ebc507a1bebd2489
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ module Snaptable
|
|
40
40
|
def format(attribute, attr_value)
|
41
41
|
if attr_value.is_a?(Date) || attr_value.is_a?(Time) || attr_value.is_a?(DateTime)
|
42
42
|
l attr_value, format: :snaptable
|
43
|
-
elsif attribute.to_s.in?
|
43
|
+
elsif !attr_value.nil? && attribute.to_s.in?(enums)
|
44
44
|
t "#{model.model_name.i18n_key}.#{attribute.to_s.pluralize}.#{attr_value}"
|
45
45
|
else
|
46
46
|
attr_value
|
data/lib/snaptable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snaptable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khcr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|