Mode all the actions to Interactions folder

This commit is contained in:
Alex Sherman 2021-02-08 17:44:15 +05:00 committed by Karl Erik Õunapuu
parent d7f01f24a2
commit fdef27c45e
No known key found for this signature in database
GPG key ID: C9DD647298A34764
18 changed files with 20 additions and 20 deletions

View file

@ -14,7 +14,7 @@ module Repp
end
def create
params[:nameservers].each { |n| n[:action] = 'add' }
action = ::Actions::DomainUpdate.new(@domain, nameserver_params, current_user)
action = Actions::DomainUpdate.new(@domain, nameserver_params, current_user)
unless action.call
handle_errors(@domain)
@ -28,7 +28,7 @@ module Repp
desc 'Delete specific nameserver from domain'
def destroy
nameserver = { nameservers: [{ hostname: params[:id], action: 'rem' }] }
action = ::Actions::DomainUpdate.new(@domain, nameserver, false)
action = Actions::DomainUpdate.new(@domain, nameserver, false)
unless action.call
handle_errors(@domain)