From 0b6b89f408f856210fe7725e9592d0c64f987ca3 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Mon, 25 Jan 2016 15:08:02 +0200 Subject: [PATCH] Story#105846070 - load domains by registrant_ident --- app/models/registrant_user.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,