From b505de2f0f3f6837e0e62f7f72e8392bea5dfe69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergei=20Ts=C3=B5ganov?= Date: Mon, 6 Jun 2022 16:30:57 +0300 Subject: [PATCH] Fixed test errors --- app/controllers/repp/v1/contacts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repp/v1/contacts_controller.rb b/app/controllers/repp/v1/contacts_controller.rb index 309a53a36..d6c4439c5 100644 --- a/app/controllers/repp/v1/contacts_controller.rb +++ b/app/controllers/repp/v1/contacts_controller.rb @@ -155,7 +155,7 @@ module Repp end def serialized_contacts(contacts) - return contacts.map(&code) unless index_params[:details] == 'true' + return contacts.map(&:code) unless index_params[:details] == 'true' address_processing = Contact.address_processing? contacts.map do |c|