mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Collect errors from parent
This commit is contained in:
parent
684a4ab4f1
commit
a8e0cba9d3
2 changed files with 58 additions and 0 deletions
|
@ -6,6 +6,8 @@ module Epp::DomainsHelper
|
|||
if @domain.save && @domain.attach_contacts(domain_contacts) && @domain.attach_nameservers(domain_nameservers)
|
||||
render '/epp/domains/create'
|
||||
else
|
||||
@domain.construct_epp_errors
|
||||
|
||||
handle_errors
|
||||
render '/epp/error'
|
||||
raise ActiveRecord::Rollback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue