mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Move actions to own namespace
This commit is contained in:
parent
115cefc0cf
commit
d7f01f24a2
19 changed files with 27 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue