fanforce-validations 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/validations/validations.rb +1 -1
- data/lib/fanforce/validations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODZkODA5ZWFlYjJkMjRiZmMzMzEwMWI0MjA1ODBlOGU3YTFkZTI4ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2EwMjU1MDc0YmZhMmVlZTZjMmNmZDZjNjAzM2UzYmQ2NDcxZDdiNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTFkMGFmOGRjOGNjNzk5NWY3ZmY0NTU0YmJkZDVkYTY2OWQ1OTQ0MDQzZmM4
|
10
|
+
MDRiMjQ3ZjA2NzRkZDM5NDlhYmExNjA0ZmU5ODAzYmRjY2UwM2Y2NjAyOTVl
|
11
|
+
NzNkYzU1ODkxNDAzM2Q1MDFlZjczMTlmNDgxYTdiYzA1Y2ZmNzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDUyODhiMGQxYTA5MGMwNWYyYTdjODFjNzBmYWMzOGI3N2RkMjBmODNmZTE5
|
14
|
+
ZTQ4MTMxNjM5ODBiN2E2NDEzYTZmNGI5N2I3NDc3NzA2YzgwOTc0ZDBhODEx
|
15
|
+
NmVmZjBlZDE4NDhhNzQ1ODcxOWQxMmU1NTUxNzkxY2M4ODVjY2Y=
|
@@ -79,7 +79,7 @@ module Fanforce::Validations
|
|
79
79
|
|
80
80
|
if is_present?(_external_id) and !_external_id.is_a?(String)
|
81
81
|
opts[:message] = "id must be a string but was a #{_external_id.class.name}"
|
82
|
-
elsif _external_id.include?('/')
|
82
|
+
elsif !_external_id.nil? and _external_id.include?('/')
|
83
83
|
opts[:message] = 'id cannot contain forward slashes (/)'
|
84
84
|
else
|
85
85
|
return true
|