json_attributes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/json_attributes/legacy_attributes.rb +1 -1
- data/lib/json_attributes/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: f8b59d1c2559fe87fff720e6245cad29ff432ea7
|
4
|
+
data.tar.gz: ee50a92852bf4feb5dc7008bb46e35160d328e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e68c502283383a03a8fdafe1f9dfe96b159cf6edea1abdd8fb992ff9a332b438faf5efead7964c2160bea5626aa6037ac5cf39ae6ebcfd92749e249625265a3
|
7
|
+
data.tar.gz: 190eaa8b16e078f44d7e4f8f0d38106ed2546a371a7ef3c05cbed880f27685647ccd5a50c48bafc408cc7704251795810850c3ebba6f0924c3910936401ecebe
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@ module JsonAttributes::LegacyAttributes
|
|
2
2
|
|
3
3
|
def attributes
|
4
4
|
_json_attrs = if self.class.instance_variable_get(:@field)
|
5
|
-
self.send(self.class.instance_variable_get(:@field)).dup
|
5
|
+
self.send(self.class.instance_variable_get(:@field)).try(:dup) || {}
|
6
6
|
else
|
7
7
|
{}
|
8
8
|
end.with_indifferent_access
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel AZEMAR
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|