Story#105846070 - load domains by registrant_ident

This commit is contained in:
Vladimir Krylov 2016-01-25 15:08:02 +02:00
parent f2f91f7286
commit 0b6b89f408

View file

@ -12,8 +12,7 @@ class RegistrantUser < User
end
def domains
# TODO: move data to normal columns and drop registrant_ident
ident_cc, ident = @current_user.registrant_ident.split '-'
ident_cc, ident = registrant_ident.to_s.split '-'
Domain.includes(:registrar, :registrant).where(contacts: {
ident_type: 'priv',
ident: ident, #identity_code,