make polynesia mobile phone number valid

This commit is contained in:
clemkeirua 2020-09-08 17:28:01 +02:00
parent 5471b8d22b
commit 3697c610b6

View file

@ -20,5 +20,5 @@ class Champs::PhoneChamp < Champs::TextChamp
possible: true,
allow_blank: true,
message: I18n.t(:not_a_phone, scope: 'activerecord.errors.messages')
}
}, unless: -> { Phonelib.valid_for_country?(value, :pf) }
end