app/models/applications/application_group_member.rb
def valid_uw_netid?
    return true if person.is_a?(Student) 
    if uw_student? and !StudentRecord.valid_uw_netid?(email)
      errors.add :email, "is not a valid UW NetID"
      return false
    end
  end
# Adds an extra custom validation to ensure that the supplied UW NetID is valid if this group member is a UW student. If a
# person has been assigned to this group member already, then this method will *always* return true as long as the person
# object is a +Student+, because we trust that anyone with a valid Student object already has a valid UW NetID in the student DB.
Adds an extra custom validation to ensure that the supplied UW NetID is valid if this group member is a UW student. If a
person has been assigned to this group member already, then this method will *always* return true as long as the person
object is a +Student+, because we trust that anyone with a valid Student object already has a valid UW NetID in the student DB.
Adds an extra custom validation to ensure that the supplied UW NetID is valid if this group member is a UW student . If a person has been assigned to this group member already then this method will * always * return true as long as the person object is a + Student + because we trust that anyone with a valid Student object already has a valid UW NetID in the student DB .
def valid_uw_netid?
    return true if person.is_a?(Student) 
    if uw_student? and !StudentRecord.valid_uw_netid?(email)
      errors.add :email, "is not a valid UW NetID"
      return false
    end
  end
def valid_uw_netid? return true if person . is_a? ( Student ) if uw_student? and ! StudentRecord . valid_uw_netid? ( email ) errors . add :email , "is not a valid UW NetID" return false end end
Adds an extra custom validation to ensure that the supplied UW NetID is valid if this group member is a UW student.
Adds an extra custom validation to ensure that the supplied UW NetID is valid if this group member is a UW student .