ons-firestore 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ons-firestore/firestore.rb +2 -1
- data/lib/ons-firestore/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: 8f758241e0412f8c0b4c72776352c753dd44cea5bcca617bd80efb90baa12829
|
4
|
+
data.tar.gz: ada12ed5b8d5d1d4ece7cf7812d839dba8f6e55fe592e7ac97e6d00a443565ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f7c7171137c9bc2c6dc8ddf9b96f2ece25c77c3a7cb17031f9a763ac0fea9b41bc797bc3612f884cb5f30513b8a84b01ec69fbe16f9621e9df557e7c7b854fb
|
7
|
+
data.tar.gz: e37cf44ff5a87a260d98f045a04624eaac0cb441ac910472538d2f36716cab74ea3ad0484511901f2ad688a0a2f703a3f068914939334250250ff4aa6e9e9c15
|
@@ -61,7 +61,8 @@ class Firestore
|
|
61
61
|
if data.is_a?(Hash)
|
62
62
|
hash_data = {}
|
63
63
|
data.each do |key, value|
|
64
|
-
hash_data[key] = value
|
64
|
+
hash_data[key] = value if value.is_a?(Array)
|
65
|
+
hash_data[key] = value.map(&:to_h) unless value.is_a?(Array)
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|