From 0cd846a28f1d9330406265fd5359df4f3ee280aa Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 10 Feb 2020 12:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/forms/users/apply_authentication_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/forms/users/apply_authentication_form.rb b/app/forms/users/apply_authentication_form.rb index c7c171e31..e55d6f295 100644 --- a/app/forms/users/apply_authentication_form.rb +++ b/app/forms/users/apply_authentication_form.rb @@ -10,7 +10,7 @@ class Users::ApplyAuthenticationForm def validate_ID_number unless id_number =~ User::VALID_NUMBER_REGEX - raise("身份证格式不对") + raise(ActiveModel::ValidationError, "身份证格式不对") end end