Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
msdundar committed Jul 14, 2018
1 parent 1bacc1c commit 001e0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/apa_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 001e0d3

Please sign in to comment.