From 001e0d3d97e22fe145916c8c735b0e18e56d0a8f Mon Sep 17 00:00:00 2001 From: msdundar Date: Sat, 14 Jul 2018 19:37:20 +0300 Subject: [PATCH] . --- app/helpers/apa_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/apa_helper.rb b/app/helpers/apa_helper.rb index a4a1b0ab7..828130252 100644 --- a/app/helpers/apa_helper.rb +++ b/app/helpers/apa_helper.rb @@ -12,7 +12,7 @@ def authors_in_apa_format(article) article.authors.split(',').map do |author| names = author.split last_name = names.shift.capitalize_all - first_name = names.map(&:first).join('. ') + first_name = names.map(&:first).join('. ') "#{last_name}, #{first_name}" end.join(' & ') end