Domain updating - adding contacts and nameservers

This commit is contained in:
Martin Lensment 2014-08-19 15:38:19 +03:00
parent 32fc26b5a4
commit 290182b7d1
3 changed files with 14 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class Domain < ActiveRecord::Base
### CREATE ###
def attach_objects(ph, parsed_frame)
attach_owner_contact(ph[:registrant])
attach_owner_contact(ph[:registrant]) if ph[:registrant]
attach_contacts(self.class.parse_contacts_from_frame(parsed_frame))
attach_nameservers(self.class.parse_nameservers_from_frame(parsed_frame))