mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Remove old country from contact controller
This commit is contained in:
parent
2117cb62c2
commit
cddf93ce1c
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
unless contact
|
||||
epp_errors << { code: '2303',
|
||||
msg: t('errors.messages.epp_obj_does_not_exist'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue