mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Merge pull request #22 from internetee/story/109368800-contact-dot
Story/109368800 contact dot
This commit is contained in:
commit
3a408277da
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class Contact < ActiveRecord::Base
|
|||
validates :ident_country_code, presence: true, if: proc { |c| %w(org priv).include? c.ident_type }, on: :create
|
||||
validates :code,
|
||||
uniqueness: { message: :epp_id_taken },
|
||||
format: { with: /\A[\w\-\:]*\Z/i, message: :invalid },
|
||||
format: { with: /\A[\w\-\:\.\_]*\z/i, message: :invalid },
|
||||
length: { maximum: 100, message: :too_long_contact_code }
|
||||
validate :ident_valid_format?
|
||||
validate :uniq_statuses?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue