From cddf93ce1ce30ac5d425db260e7eb4df3dec0c64 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 3 Feb 2015 13:30:49 +0200 Subject: [PATCH] Remove old country from contact controller --- app/controllers/epp/contacts_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/epp/contacts_controller.rb b/app/controllers/epp/contacts_controller.rb index 6d2698459..6e575b737 100644 --- a/app/controllers/epp/contacts_controller.rb +++ b/app/controllers/epp/contacts_controller.rb @@ -115,11 +115,7 @@ class Epp::ContactsController < EppController ## SHARED def find_contact(eager_load = nil) - if eager_load - contact = Contact.includes(address: :country).find_by(code: @ph[:id]) - else - contact = Contact.find_by(code: @ph[:id]) - end + contact = Contact.find_by(code: @ph[:id]) unless contact epp_errors << { code: '2303', msg: t('errors.messages.epp_obj_does_not_exist'),