Updated bullet issue for Domain create

This commit is contained in:
Priit Tark 2015-03-31 16:00:30 +03:00
parent 0533d16028
commit c5860bde98
3 changed files with 6 additions and 6 deletions

View file

@ -68,11 +68,8 @@ class Epp::Domain < Domain
end
def attach_default_contacts
# for bullet, owner contact validates registrar and triggers bullet
owner_contact_included = Contact.where(id: owner_contact.id).includes(:registrar).first
tech_contacts << owner_contact_included if tech_contacts.blank?
admin_contacts << owner_contact_included if admin_contacts.blank? && owner_contact.priv?
tech_contacts << owner_contact if tech_contacts.blank?
admin_contacts << owner_contact if admin_contacts.blank? && owner_contact.priv?
end
# rubocop: disable Metrics/PerceivedComplexity