diff --git a/app/models/request_for_comment.rb b/app/models/request_for_comment.rb index fe15409b..b4fa819b 100644 --- a/app/models/request_for_comment.rb +++ b/app/models/request_for_comment.rb @@ -46,11 +46,7 @@ class RequestForComment < ApplicationRecord end def commenters - commenters = [] - comments.distinct.to_a.each {|comment| - commenters.append comment.user - } - commenters.uniq {|user| user.id} + comments.map(&:user).uniq end def self.with_last_activity