异常问题

pay_subject
daiao 5 years ago
parent 42ff834356
commit 0cd846a28f

@ -10,7 +10,7 @@ class Users::ApplyAuthenticationForm
def validate_ID_number
unless id_number =~ User::VALID_NUMBER_REGEX
raise("身份证格式不对")
raise(ActiveModel::ValidationError, "身份证格式不对")
end
end

Loading…
Cancel
Save