Add epp attr map

This commit is contained in:
Martin Lensment 2014-08-08 10:28:29 +03:00
parent 3256534f0d
commit ec9dcf52cf
4 changed files with 8 additions and 4 deletions

View file

@ -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'