app/models/committees/committee_member.rb
# Checks if the number of applications assigned to this reviewer is less than the amount specified in the
# +max_number_of_applicants_per_reviewer+ attribute of this Member's CommitteeMemberType. If an Offering object is passed,
# then we base the result on assignments for the current offering only.
Checks if the number of applications assigned to this reviewer is less than the amount specified in the
+max_number_of_applicants_per_reviewer+ attribute of this Member's CommitteeMemberType. If an Offering object is passed,
then we base the result on assignments for the current offering only.
Checks if the number of applications assigned to this reviewer is less than the amount specified in the + max_number_of_applicants_per_reviewer + attribute of this Member ' s CommitteeMemberType . If an Offering object is passed then we base the result on assignments for the current offering only .
def full?(offering = nil)
    return false if committee_member_type.nil?
    return false if committee_member_type.max_number_of_applicants_per_reviewer.blank?
    return applications_for_review.size >= committee_member_type.max_number_of_applicants_per_reviewer if offering.nil?
    applications_for_review.for(offering).size >= committee_member_type.max_number_of_applicants_per_reviewer
  end
def full? ( offering = nil ) return false if committee_member_type . nil? return false if committee_member_type . max_number_of_applicants_per_reviewer . blank? return applications_for_review . size >= committee_member_type . max_number_of_applicants_per_reviewer if offering . nil? applications_for_review . for ( offering ) . size >= committee_member_type . max_number_of_applicants_per_reviewer end
Checks if the number of applications assigned to this reviewer is less than the amount specified in the
+max_number_of_applicants_per_reviewer+ attribute of this Member's CommitteeMemberType.
Checks if the number of applications assigned to this reviewer is less than the amount specified in the + max_number_of_applicants_per_reviewer + attribute of this Member ' s CommitteeMemberType .
offering