mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
111601356-ident_type_validation
This commit is contained in:
parent
572a3f4e1d
commit
00a1d70bc5
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class Contact < ActiveRecord::Base
|
|||
uniqueness: { message: :epp_id_taken },
|
||||
format: { with: /\A[\w\-\:\.\_]*\z/i, message: :invalid },
|
||||
length: { maximum: 100, message: :too_long_contact_code }
|
||||
validates :ident_type, inclusion: {in: %w( org priv birthday)}
|
||||
validate :val_ident_valid_format?
|
||||
validate :uniq_statuses?
|
||||
validate :validate_html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue