Move actions to own namespace

This commit is contained in:
Karl Erik Õunapuu 2021-02-08 14:10:57 +02:00
parent 115cefc0cf
commit d7f01f24a2
No known key found for this signature in database
GPG key ID: C9DD647298A34764
19 changed files with 27 additions and 26 deletions

View file

@ -10,7 +10,7 @@ module Repp
param :transfer_code, String, required: true, desc: 'Renew period. Month (m) or year (y)'
end
def create
action = Actions::DomainTransfer.new(@domain, transfer_params[:transfer][:transfer_code],
action = ::Actions::DomainTransfer.new(@domain, transfer_params[:transfer][:transfer_code],
current_user.registrar)
unless action.call