mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Refactor
This commit is contained in:
parent
3e983e6082
commit
0cea91a28a
3 changed files with 9 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue