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

@ -5,7 +5,9 @@ class Nameserver < ActiveRecord::Base
'2005' => ['Hostname is invalid', 'IP is invalid']
}
EPP_OBJ = 'ns'
EPP_ATTR_MAP = {
hostname: 'hostName'
}
belongs_to :registrar
has_and_belongs_to_many :domains