Skip to content

Commit

Permalink
rename helper, remove duplicate helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchud committed Nov 19, 2024
1 parent 0df811a commit 380c7ce
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# frozen_string_literal: true

module ManageSubmissionsHelper
module SubmissionsHelper
def eligible_for_evaluation?(submission)
submission.judging_status.in?(%w[selected winner])
end

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

0 comments on commit 380c7ce

Please sign in to comment.