store_model 0.6.1 → 0.6.2

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: 675a1eed74c9c24e82a9cdc3ad86135de65fb9cef761b87a5dbb4d2ddf904fc9
4
- data.tar.gz: 7d1ac5c24cbf430c70109165381b55ea53a35ce331a7cbf65aa5ed9a59cdcbf5
3
+ metadata.gz: a4da91e0f6f9e27a71947f5a31b7bb0d936680bd263ad46f69916d995380af27
4
+ data.tar.gz: 463730c176403dd845382cd078d90e58faae6d2ee1a7c9670c7f7c48d68032d3
5
5
  SHA512:
6
- metadata.gz: '098c71eee5aea9204a9a305dec5233040a55f80da73335bdf86b754f5de82ab90931d05cbcec7cb0fb187f175ed4c59bb985898dda853469a535f7ca023379c3'
7
- data.tar.gz: e60c5f89a0f1c43e48433ecac9b91976567a696887fe0d3a4cd959ac14fa927d34f9876b2ace988c05bd67157976dc2b5cbd4033a88030b21952fa4f3e62792c
6
+ metadata.gz: 1cb34bbaf868eea40c26d33b2c15a8fbd8c79f3e5429714172f0f38ea9e11a396241831744be82c280b8ace4de60237a5226d8a9cf77bedf2b200b8bb3e58485
7
+ data.tar.gz: 8dbf31fb3f4ece28979fa49d799b1f633e7e9f5007ceb38d0cf883ea214c50dc621c8f5b8c5367cb979910c74af039de675acbf7d69e7720d2f6d61b25a240e4
@@ -24,7 +24,7 @@ module ActiveModel
24
24
  when :json
25
25
  strategy.call(attribute, record.errors, value.errors) if value.invalid?
26
26
  when :array
27
- record.errors.add(attribute, :invalid) if value.any?(&:invalid?)
27
+ record.errors.add(attribute, :invalid) if value.select(&:invalid?).present?
28
28
  end
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StoreModel # :nodoc:
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
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: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-14 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord