From 380c7ce6d7bc36479c2a251971785b1f25de8cfe Mon Sep 17 00:00:00 2001 From: Stephen Chudleigh Date: Tue, 19 Nov 2024 15:18:44 -0800 Subject: [PATCH] rename helper, remove duplicate helper method --- .../{manage_submissions_helper.rb => submissions_helper.rb} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename app/helpers/{manage_submissions_helper.rb => submissions_helper.rb} (62%) diff --git a/app/helpers/manage_submissions_helper.rb b/app/helpers/submissions_helper.rb similarity index 62% rename from app/helpers/manage_submissions_helper.rb rename to app/helpers/submissions_helper.rb index 4900dc18..75e9cf9b 100644 --- a/app/helpers/manage_submissions_helper.rb +++ b/app/helpers/submissions_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module ManageSubmissionsHelper +module SubmissionsHelper def eligible_for_evaluation?(submission) submission.judging_status.in?(%w[selected winner]) end @@ -8,8 +8,4 @@ def eligible_for_evaluation?(submission) def selected_to_advance?(submission) submission.judging_status.in?(%w[winner]) end - - def phase_has_recused_evaluator?(phase) - phase.evaluator_submission_assignments.recused.exists? - end end