mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
create#contacts refactor
This commit is contained in:
parent
2adbd915f7
commit
813674c965
4 changed files with 28 additions and 6 deletions
|
@ -15,6 +15,7 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
validate :ident_must_be_valid
|
||||
validates :phone, format: { with: /\+\d{3}\.\d+/, message: "bad format" }
|
||||
validates_uniqueness_of :code, message: :epp_id_taken
|
||||
|
||||
IDENT_TYPE_ICO = 'ico'
|
||||
IDENT_TYPES = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue