app/models/applications/application_group_member.rb
# Ensures that this group member is not already the primary applicant for this application. You can't add yourself as a group member!
Ensures that this group member is not already the primary applicant for this application. You can't add yourself as a group member!
Ensures that this group member is not already the primary applicant for this application . You can ' t add yourself as a group member!
def not_primary_applicant?
    if person_id == application_for_offering.person_id
      errors.add_to_base "You cannot add yourself as a group member if you are the primary applicant."
      person_id = nil
      return false
    end
    true
  end
def not_primary_applicant? if person_id == application_for_offering . person_id errors . add_to_base "You cannot add yourself as a group member if you are the primary applicant." person_id = nil return false end true end
Ensures that this group member is not already the primary applicant for this application.
Ensures that this group member is not already the primary applicant for this application .