ngwords 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ngwords/validator.rb +1 -1
- data/lib/ngwords/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: 7096e2a935e806f8bbd120feba55fb2c2d2b1584
|
4
|
+
data.tar.gz: 81070b17ef5e4f71996ea55862613031ef52781f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5021038f254b70a145693b532e3219dcc6c6738fc0a6c3d6f755554008e34f74b59d32105f4aa6b9b2c74354afdc6585dc21b0abc501f4926b7c36cb469e0bd
|
7
|
+
data.tar.gz: aefbd22d065e14f8ead568b769d6f531c010e6bd0ad2a4c29489793087eacfb219508d3c5f8503b5856b908ab65729a6ec60d085e7ecb167a567041a411104e1
|
data/lib/ngwords/validator.rb
CHANGED
@@ -8,7 +8,7 @@ module ActiveModel
|
|
8
8
|
def validate_each(record, attribute, value)
|
9
9
|
return if value.blank?
|
10
10
|
if Moji.normalize_zen_han(value) =~ ngwords
|
11
|
-
record.errors.add(attribute, I18n.t('activerecord.errors.messages.includes_ngwords', default: 'includes prohibited words.'))
|
11
|
+
record.errors.add(attribute, I18n.t('activerecord.errors.messages.includes_ngwords', default: ' includes prohibited words.'))
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
data/lib/ngwords/version.rb
CHANGED