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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f3b084f46c6eaf4add97a2c0cf23356524f4e5c08c8387535561231453cb4c
4
- data.tar.gz: 9471a0a8db98416257030134e1bebadb661a6bf8d2d1495c5232c09029884daf
3
+ metadata.gz: f009aaee1f50c4d5c20a5efe462fa7464e66c4ba1fadc87b168d5a515ea4332e
4
+ data.tar.gz: 6aac23cf4c42f10b81a2fa759a8f2f208be7627577c01e4febcaaf4457fb1df7
5
5
  SHA512:
6
- metadata.gz: 48c10f69a844c7adc77346b3cad3f27d15c53fd9281a7953213f7c7c92c0baad25b62c1a6f469fab7056ace9c7856688818d997d9a684b147935580d7e2972a5
7
- data.tar.gz: 60c00607715329c2e34bf101eba4c014a6cd29f564323d38bcd74921349996b441048c590d48c023eb6d2a4f254e1015526034bab7a10b5eb11a6524876284aa
6
+ metadata.gz: 22fa599513dbc3967800913d59a23de86d8a0d66e9d5acdce04e4282eb096bde8285360077da62210c523b55c369304a215c47046e15e0fa62389f5d49e317b7
7
+ data.tar.gz: ffaffb1ff3a6261b2c4b2d03b3d152a2b300b304948217df617db32f01d2e04b8415ad41a950a17c8d2c49bfe12c7ea44ce98420c9217ae7b4caeb9880362855
@@ -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?,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StoreModel # :nodoc:
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord