store_model 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/lib/active_model/validations/store_model_validator.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: 7842213fb20b584acad440071c9e48335e2e42b798e4b59246742c0ce0edde63
|
4
|
+
data.tar.gz: d72f8f61111b3c2e7d03aab2fbb9160fda08aebd8b0a519031e8096daa96c81e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2156d9c70cf0297d2759ae31736b82b2a93c462ac105c39d649043f039032df77c5ad508b89d860b3b38cd43a60e213ce72cc1f8df8ec5bc6b633c44977d0c5
|
7
|
+
data.tar.gz: 9b002f40458b95dc6ee9f25643c5a602ab68f85a8029af284d4ce8f04e730ac588d87129010510797e8840f948dd04c72c2ec6f84f09a7bdd733f8f5760cc522
|
data/README.md
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
# Disclaimer
|
2
|
-
|
3
|
-
**This gem hasn't been released yet! I'm going to force push a lot, be careful**
|
4
|
-
|
5
1
|
[![Gem Version](https://badge.fury.io/rb/store_model.svg)](https://rubygems.org/gems/store_model)
|
6
2
|
[![Build Status](https://travis-ci.org/DmitryTsepelev/store_model.svg?branch=master)](https://travis-ci.org/DmitryTsepelev/store_model)
|
7
3
|
[![Coverage Status](https://coveralls.io/repos/github/DmitryTsepelev/store_model/badge.svg?branch=master)](https://coveralls.io/github/DmitryTsepelev/store_model?branch=master)
|
@@ -9,7 +9,7 @@ module ActiveModel
|
|
9
9
|
def validate(record)
|
10
10
|
options[:attributes].each do |attribute|
|
11
11
|
attribute_value = record.send(attribute)
|
12
|
-
combine_errors(record, attribute)
|
12
|
+
combine_errors(record, attribute) if attribute_value&.invalid?
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
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: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|