mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Domain update with ns delete
This commit is contained in:
parent
bcc4df6bed
commit
fa28f09ff0
3 changed files with 45 additions and 18 deletions
|
@ -17,7 +17,7 @@ class Admin::DomainsController < AdminController
|
|||
|
||||
def update
|
||||
add_prefix_to_statuses
|
||||
binding.pry
|
||||
|
||||
if @domain.update(domain_params)
|
||||
flash[:notice] = I18n.t('domain_updated')
|
||||
redirect_to [:admin, @domain]
|
||||
|
|
|
@ -51,13 +51,11 @@ class Epp::DomainsController < EppController
|
|||
# @domain.parse_and_update_domain_dependencies(params[:parsed_frame].css('chg'))
|
||||
# @domain.attach_legal_document(Epp::EppDomain.parse_legal_document_from_frame(params[:parsed_frame]))
|
||||
|
||||
# binding.pry
|
||||
|
||||
# if @domain.update(parsed_frame)
|
||||
# handle_errors(@domain)
|
||||
# else
|
||||
# render_epp_response '/epp/domains/success'
|
||||
# end
|
||||
if @domain.update(params[:parsed_frame], current_user)
|
||||
handle_errors(@domain)
|
||||
else
|
||||
render_epp_response '/epp/domains/success'
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop: disable Metrics/PerceivedComplexity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue