app/models/offerings/offering.rb
# Returns the set of OfferingReviewers that are valid to be assigned to the specified ApplicationForOffering.
# For example, this will not include reviewers that have already been assigned to this application or reviewers 
# that serve as a mentor for this appliction.
Returns the set of OfferingReviewers that are valid to be assigned to the specified ApplicationForOffering.
For example, this will not include reviewers that have already been assigned to this application or reviewers
that serve as a mentor for this appliction.
Returns the set of OfferingReviewers that are valid to be assigned to the specified ApplicationForOffering . For example this will not include reviewers that have already been assigned to this application or reviewers that serve as a mentor for this appliction .
def reviewers_for(app)
    res = Array.new(self.reviewers)
    res = res.delete_if {|r| app.mentors.collect(&:person).include?(r.person)} unless allow_to_review_mentee
    res = res.delete_if {|r| app.reviewers.collect(&:person).include?(r.person)}
  end
def reviewers_for ( app ) res = Array . new ( self . reviewers ) res = res . delete_if { | r | app . mentors . collect ( & :person ) . include? ( r . person ) } unless allow_to_review_mentee res = res . delete_if { | r | app . reviewers . collect ( & :person ) . include? ( r . person ) } end
Returns the set of OfferingReviewers that are valid to be assigned to the specified ApplicationForOffering.
Returns the set of OfferingReviewers that are valid to be assigned to the specified ApplicationForOffering .
app