mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Refactor RegistrantUser class
* Extract frequently used country_code and ident methods * Refactor domain query * Add contact query method * Add adminstrated_domains query method. Name will most likely change in the future developments * Change registry locks integration test name
This commit is contained in:
parent
9f7fc47f19
commit
9623e2fb97
6 changed files with 95 additions and 55 deletions
|
@ -25,7 +25,7 @@ module Api
|
|||
private
|
||||
|
||||
def set_domain
|
||||
domain_pool = associated_domains(current_user)
|
||||
domain_pool = current_user.administrated_domains
|
||||
@domain = domain_pool.find_by(uuid: params[:domain_uuid])
|
||||
|
||||
return if @domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue