vendor/engines/proposals/app/models/proposal.rb
def sorted_reviewers(proposals)
      reviewers = []
      proposals.each do|proposal|
        hash = proposal.comments_and_appeal_ratings
        hash.each_key do |user|
          reviewer_name = user.username
          reviewers << reviewer_name unless reviewers.include?(reviewer_name)
        end
      end
      reviewers.sort
    end
# Returns a sorted array of unique reviewer usernames for the current
# pending proposals.
Returns a sorted array of unique reviewer usernames for the current
pending proposals.
Returns a sorted array of unique reviewer usernames for the current pending proposals .
def sorted_reviewers(proposals)
      reviewers = []
      proposals.each do|proposal|
        hash = proposal.comments_and_appeal_ratings
        hash.each_key do |user|
          reviewer_name = user.username
          reviewers << reviewer_name unless reviewers.include?(reviewer_name)
        end
      end
      reviewers.sort
    end
def sorted_reviewers ( proposals ) reviewers = [ ] proposals . each do | proposal | hash = proposal . comments_and_appeal_ratings hash . each_key do | user | reviewer_name = user . username reviewers << reviewer_name unless reviewers . include? ( reviewer_name ) end end reviewers . sort end
Returns a sorted array of unique reviewer usernames for the current
pending proposals.
Returns a sorted array of unique reviewer usernames for the current pending proposals .
proposals