morse_fields_validator 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/.fields_validator.rb.swp +0 -0
- data/lib/fields_validator.rb +1 -1
- data/lib/morse_fields_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fae7e32bd29a406410a84493323e2b7c68805f99
|
4
|
+
data.tar.gz: 170f6a090e9dfffebe2fbc6f5dc0635b400b8b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a870cd37480322eaa46c3e5104178da6fafdbb7a9e9d572c005230606ad62355bd76a695ff7c16be74b834c9e9a1e66ba1b0a47e6582eb4aed7b7e0b6426b4b
|
7
|
+
data.tar.gz: 0c054c0b8a55afe2e3a6e7ac84ce517c25838e55b19c7b0fbe284b7415b42b2b38432bd5cc3d1805357504ff6458a631bf28c355bbdf8068cf4fb8740a636450
|
Binary file
|
data/lib/fields_validator.rb
CHANGED
@@ -10,7 +10,7 @@ module FieldsValidator
|
|
10
10
|
def validate_required_attributes
|
11
11
|
required_attributes.each do |a|
|
12
12
|
validates a.to_sym, presence: true
|
13
|
-
end if required_attributes.any?
|
13
|
+
end if required_attributes and required_attributes.any?
|
14
14
|
end
|
15
15
|
|
16
16
|
def required_attributes
|