mirror of
https://github.com/internetee/registry.git
synced 2025-08-15 05:53:55 +02:00
Story#105846070 - load domains by registrant_ident
This commit is contained in:
parent
9b64989038
commit
79b435cef2
1 changed files with 1 additions and 2 deletions
|
@ -12,8 +12,7 @@ class RegistrantUser < User
|
||||||
end
|
end
|
||||||
|
|
||||||
def domains
|
def domains
|
||||||
# TODO: move data to normal columns and drop registrant_ident
|
ident_cc, ident = registrant_ident.to_s.split '-'
|
||||||
ident_cc, ident = @current_user.registrant_ident.split '-'
|
|
||||||
Domain.includes(:registrar, :registrant).where(contacts: {
|
Domain.includes(:registrar, :registrant).where(contacts: {
|
||||||
ident_type: 'priv',
|
ident_type: 'priv',
|
||||||
ident: ident, #identity_code,
|
ident: ident, #identity_code,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue