Collect errors from parent

This commit is contained in:
Martin Lensment 2014-08-07 12:06:53 +03:00
parent 684a4ab4f1
commit a8e0cba9d3
2 changed files with 58 additions and 0 deletions

View file

@ -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