fanforce-validations 0.3.3 → 0.4.0
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 +3 -3
- 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
|
+
YTNiZDhhZjMyMmZhMDlhYzY3MGZlYmMzN2ZhOGVlOGNiOTg3NGQwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODJlYmU2YTUwYjZmNWU1OWJmMzkxNGQ3N2RhOWY3MjgzNzc1YmNkMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2FiN2UyOTI4ODMyNzVmMTEzZGI2OWYzZTQ5YzFmNjRkMTg0NDBjOThmZmJm
|
10
|
+
NTQ5ZmE3ZmY0MzVjOGVlZGUzN2QxZTBkY2M1ZmMwYTVhM2QwNDljMmQxNTE3
|
11
|
+
MmE5OWEwMjZiN2RhNWU0YTIyZTM3MjZjZWE1ZDQyNTJjYTk4NDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2MwMDk5MzAxMTk3ZGE4OTQ5NGU0MWYyM2Q1MWJhMGY5YmRhYWQ5NGViYjM5
|
14
|
+
MTAzNDg3MmQ0OGI3NmY5OTU4MWQyNjgwZDIyYjVjMmI3YWFmY2U1NzQxZjQ4
|
15
|
+
MWQwNzFlOGQxZDAyYTA0YzdkOGFmYzhiNGZkZjA0NjBhNGY1YjI=
|
@@ -73,14 +73,14 @@ module Fanforce::Validations
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def validates_format_of_external_id(*args)
|
76
|
+
_external_id = args.first
|
76
77
|
opts = extract_options!(args).merge(:field => :_external_id)
|
77
78
|
params = extract_validation_params(opts)
|
78
|
-
_external_id = args.first
|
79
79
|
|
80
80
|
if is_present?(_external_id) and !_external_id.is_a?(String)
|
81
|
-
opts[:message] = "
|
81
|
+
opts[:message] = "if included, _external_id must be a string not a #{_external_id.class.name}"
|
82
82
|
elsif !_external_id.nil? and _external_id.include?('/')
|
83
|
-
opts[:message] = '
|
83
|
+
opts[:message] = '_external_id cannot contain forward slashes (/)'
|
84
84
|
else
|
85
85
|
return true
|
86
86
|
end
|