mirror of
https://github.com/internetee/registry.git
synced 2025-07-04 18:23:35 +02:00
Story#105846070 - load domains by registrant_ident
This commit is contained in:
parent
f2f91f7286
commit
0b6b89f408
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