c80_yax 0.1.0.23 → 0.1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/engines/co/app/models/co/order_message_validator.rb +3 -1
- data/lib/c80_yax/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: 87df0d03c098066acbf02225cee36644e77bf2c5
|
4
|
+
data.tar.gz: 047a6108e1a1f14b77a40abd841aca7e1d998a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b3260091bca2e3d5efe84772060b9e459736ed1bd7ea0f0904d66e727ba6e370822a03c5ce7a90c4fc633b788a7039291cf0a745daf0801f7336d92011ce4bd
|
7
|
+
data.tar.gz: 0a24c2e5dde7c9b1e1657875c69ddc414bb7abef9ca2fdfe2ca02a5a9915684bd762d0ccd11e70263c98f9881bea34b56bcd8f603c36e38af95c544319d9bef5
|
@@ -9,10 +9,12 @@ module Co
|
|
9
9
|
end
|
10
10
|
|
11
11
|
if record.phone.present?
|
12
|
-
|
12
|
+
unless record.phone[/\A((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}\z/].present?
|
13
13
|
t2 = 'Пожалуйста, укажите корректный номер телефона'
|
14
14
|
record.errors[:phone] = t2
|
15
15
|
end
|
16
|
+
else
|
17
|
+
record.errors[:phone] = 'Пожалуйста, укажите номер телефона'
|
16
18
|
end
|
17
19
|
|
18
20
|
end
|
data/lib/c80_yax/version.rb
CHANGED