mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add epp attr map
This commit is contained in:
parent
3256534f0d
commit
ec9dcf52cf
4 changed files with 8 additions and 4 deletions
|
@ -11,7 +11,9 @@ class Domain < ActiveRecord::Base
|
|||
'2303' => ['Contact was not found'] # Object does not exist
|
||||
}
|
||||
|
||||
EPP_OBJ = 'domain'
|
||||
EPP_ATTR_MAP = {
|
||||
owner_contact: 'registrant'
|
||||
}
|
||||
|
||||
belongs_to :registrar
|
||||
belongs_to :owner_contact, class_name: 'Contact'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue