Attach nameservers with attributes

This commit is contained in:
Martin Lensment 2014-08-05 17:19:23 +03:00
parent 356835bebf
commit d46640713b
6 changed files with 79 additions and 3 deletions

View file

@ -53,7 +53,9 @@ module Epp::DomainsHelper
def domain_nameservers
ph = params_hash['epp']['command']['create']['create']['ns']
return [] unless ph
ph[:hostObj]
return ph[:hostObj] if ph[:hostObj]
return ph[:hostAttr] if ph[:hostAttr]
[]
end
def handle_errors