mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 04:59:42 +02:00
Add epp errors to domain_contact
This commit is contained in:
parent
1dc2a7e23f
commit
90dff29c15
1 changed files with 13 additions and 0 deletions
|
@ -1,7 +1,20 @@
|
||||||
class DomainContact < ActiveRecord::Base
|
class DomainContact < ActiveRecord::Base
|
||||||
|
include EppErrors
|
||||||
belongs_to :contact
|
belongs_to :contact
|
||||||
belongs_to :domain
|
belongs_to :domain
|
||||||
|
|
||||||
|
EPP_ATTR_MAP = {
|
||||||
|
hostname: 'hostObj'
|
||||||
|
}
|
||||||
|
|
||||||
|
def epp_code_map
|
||||||
|
{
|
||||||
|
'2302' => [
|
||||||
|
[:contact, :taken]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
TECH = 'tech'
|
TECH = 'tech'
|
||||||
ADMIN = 'admin'
|
ADMIN = 'admin'
|
||||||
TYPES = [TECH, ADMIN]
|
TYPES = [TECH, ADMIN]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue