mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
22 lines
559 B
Ruby
22 lines
559 B
Ruby
class Registrar
|
|
class TechContactsController < BulkChangeController
|
|
BASE_URL = URI.parse("#{ENV['repp_url']}domains/contacts").freeze
|
|
ACTIVE_TAB = :technical_contact
|
|
|
|
def update
|
|
authorize! :manage, :repp
|
|
|
|
uri = BASE_URL
|
|
request = form_request(uri)
|
|
|
|
action = Actions::DoRequest.new(request, uri)
|
|
response = action.call
|
|
|
|
start_notice = t('.replaced')
|
|
|
|
process_response(response: response,
|
|
start_notice: start_notice,
|
|
active_tab: ACTIVE_TAB)
|
|
end
|
|
end
|
|
end
|