Add epp errors to domain_contact

This commit is contained in:
Martin Lensment 2014-09-17 12:12:46 +03:00
parent 1dc2a7e23f
commit 90dff29c15

View file

@ -1,7 +1,20 @@
class DomainContact < ActiveRecord::Base
include EppErrors
belongs_to :contact
belongs_to :domain
EPP_ATTR_MAP = {
hostname: 'hostObj'
}
def epp_code_map
{
'2302' => [
[:contact, :taken]
]
}
end
TECH = 'tech'
ADMIN = 'admin'
TYPES = [TECH, ADMIN]