store_model 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/store_model/model.rb +1 -1
- data/lib/store_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f009aaee1f50c4d5c20a5efe462fa7464e66c4ba1fadc87b168d5a515ea4332e
|
4
|
+
data.tar.gz: 6aac23cf4c42f10b81a2fa759a8f2f208be7627577c01e4febcaaf4457fb1df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22fa599513dbc3967800913d59a23de86d8a0d66e9d5acdce04e4282eb096bde8285360077da62210c523b55c369304a215c47046e15e0fa62389f5d49e317b7
|
7
|
+
data.tar.gz: ffaffb1ff3a6261b2c4b2d03b3d152a2b300b304948217df617db32f01d2e04b8415ad41a950a17c8d2c49bfe12c7ea44ce98420c9217ae7b4caeb9880362855
|
data/lib/store_model/model.rb
CHANGED
@@ -246,7 +246,7 @@ module StoreModel
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def serialize_array_attribute(array)
|
249
|
-
return array.as_json unless array.all? { |value| value.is_a?(StoreModel::Model) }
|
249
|
+
return array.as_json unless array.any? && array.all? { |value| value.is_a?(StoreModel::Model) }
|
250
250
|
|
251
251
|
array.as_json(
|
252
252
|
serialize_unknown_attributes: array.first.serialize_unknown_attributes?,
|
data/lib/store_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: store_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|