app/controllers/external_applications_controller.rb
# check if student already applied this semester
check if student already applied this semester
check if student already applied this semester
def verify_unique_semester_application(current_applicant)
    return true unless current_applicant.external_applied_for?(@settings.current_semester)
    redirect_to students_apply_path, flash: { error: t('student_applications.create.resubmit') }
    false
  end
def verify_unique_semester_application ( current_applicant ) return true unless current_applicant . external_applied_for? ( @settings . current_semester ) redirect_to students_apply_path , flash : { error : t ( 'student_applications.create.resubmit' ) } false end
check if student already applied this semester
check if student already applied this semester
current_applicant
<not_specific>