effective_addresses 1.0.4 → 1.0.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a2d81b649e9100efaa6c5f170a0fdddb133df5
|
4
|
+
data.tar.gz: fb01322e03627d40a8a0b7561ec5f782dbffb1ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb91fd23e15863be1f442581bd9f6b4aac6d7b26d9893fb43f3f635ac37ef43b9305a6dc7bdf9c7f7a69a4296ac338e5a0064c8e27fb50add9302c1f7b4f5d37
|
7
|
+
data.tar.gz: c5c27f859d2e41cde1c659dfbdef21e7160c32482c881251d33d8015661361bd98b1660b569517ddfd6d504cd7d1e3a05dcd95201553916292ba249d29a42d38
|
@@ -1,8 +1,8 @@
|
|
1
1
|
class EffectiveAddressFullNamePresenceValidator < ActiveModel::EachValidator
|
2
2
|
def validate_each(record, attribute, value)
|
3
|
-
if value.present? && value.full_name.blank?
|
3
|
+
if value.present? && !value.empty? && value.full_name.blank?
|
4
4
|
record.errors[attribute] << "is invalid"
|
5
|
-
value.errors[:full_name] << "can't be blank"
|
5
|
+
value.errors[:full_name] << "can't be blank"
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_addresses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|