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|