Save legal doc on domain info request

This commit is contained in:
Martin Lensment 2015-01-29 18:51:04 +02:00
parent fb34e3f2eb
commit 0c16146ebb
2 changed files with 26 additions and 1 deletions

View file

@ -15,6 +15,10 @@ class Epp::DomainsController < EppController
def info
@domain = find_domain
handle_errors(@domain) and return unless @domain
@domain.attach_legal_document(Epp::EppDomain.parse_legal_document_from_frame(params[:parsed_frame]))
@domain.save!(validate: false)
render_epp_response '/epp/domains/info'
end