backframe 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backframe/activerecord/acts_as_phone.rb +1 -1
- data/lib/backframe/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: d59f6e11a5b5a46861cbf5deaf1ee801528bedf3
|
4
|
+
data.tar.gz: b3c6cb6c7ab5f6d0277969b778d2fe5cfc64a1a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cda2267bcd265dd17bbbd52addbff1dbcfde18ea24809c05f086ec6a8415838862ce7f5cf8b0bff100bd91092d5a5b1233e59d3d84778f5c075559b4b7db646
|
7
|
+
data.tar.gz: f21d1df236414604a00e8255788abc6fd451f4f14fe89f925f0204e9bd072cc29bdb68139703aab1d495a17c0bf16cb16d51ba6c95437197878ba3b40178da35
|
@@ -37,7 +37,7 @@ module Backframe
|
|
37
37
|
def validates_phone_#{entity}
|
38
38
|
testvalue = Phony.normalize(self.#{entity})
|
39
39
|
testvalue = '1'+testvalue if (testvalue.length == 10)
|
40
|
-
if Phony.plausible?(testvalue)
|
40
|
+
if !Phony.plausible?(testvalue)
|
41
41
|
self.errors.add(:#{entity}, 'invalid #{entity} number')
|
42
42
|
end
|
43
43
|
end
|
data/lib/backframe/version.rb
CHANGED