Removed ordering of co-authors by id (#20162)
* Removed ordering of co-authors by id * Updated logic * Revert code * Update app/decorators/article_decorator.rb Co-authored-by: PJ <pj@forem.com> --------- Co-authored-by: PJ <pj@forem.com>
This commit is contained in:
parent
1d4bcf5ca8
commit
b707712d73
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class ArticleDecorator < ApplicationDecorator
|
|||
end
|
||||
|
||||
def co_author_name_and_path
|
||||
co_authors.map do |user|
|
||||
User.select(:name, :username).where(id: co_author_ids).in_order_of(:id, co_author_ids).map do |user|
|
||||
%(<a href="#{user.path}" class="crayons-link">#{user.name}</a>)
|
||||
end.to_sentence
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue