diff --git a/app/models/registrant_user.rb b/app/models/registrant_user.rb index f0222b2a6..413ff1202 100644 --- a/app/models/registrant_user.rb +++ b/app/models/registrant_user.rb @@ -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,