This commit is contained in:
Martin Lensment 2014-09-11 12:14:58 +03:00
parent 3e983e6082
commit 0cea91a28a
3 changed files with 9 additions and 15 deletions

View file

@ -3,15 +3,7 @@ module Epp::DomainsHelper
EppDomain.transaction do
@domain = EppDomain.new(domain_create_params)
@domain.attach_owner_contact(@ph[:registrant]) if @ph[:registrant]
unless @domain.save
handle_errors(@domain)
raise ActiveRecord::Rollback and return
end
@domain.parse_and_attach_domain_dependencies(parsed_frame)
@domain.all_dependencies_valid?
if @domain.errors.any?
handle_errors(@domain)