mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
refactoring
This commit is contained in:
parent
c24bedae27
commit
1598e16455
7 changed files with 95 additions and 57 deletions
|
@ -24,8 +24,8 @@ class Registrar
|
|||
request.basic_auth(current_registrar_user.username,
|
||||
current_registrar_user.plain_text_password)
|
||||
|
||||
|
||||
response = do_request(request, uri)
|
||||
action = Actions::DoRequest.new(request, uri)
|
||||
response = action.call
|
||||
|
||||
parsed_response = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue