From a6565e1902e35b8c74a6522bb9286406f7bf7c57 Mon Sep 17 00:00:00 2001 From: fosterfarrell9 <28628554+fosterfarrell9@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:46:46 +0100 Subject: [PATCH] remove duplicate method --- app/helpers/assignments_helper.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/helpers/assignments_helper.rb b/app/helpers/assignments_helper.rb index 412567084..6f6a01ad5 100644 --- a/app/helpers/assignments_helper.rb +++ b/app/helpers/assignments_helper.rb @@ -6,15 +6,6 @@ def cancel_editing_assignment_path(assignment) cancel_new_assignment_path(params: { lecture: assignment.lecture }) end - def has_documents?(assignment) # rubocop:todo Naming/PredicateName - return false unless assignment.medium - - assignment.medium.video || assignment.medium.manuscript || - assignment.medium.geogebra || - assignment.medium.external_reference_link.present? || - (assignment.medium.sort == "Quiz" && assignment.medium.quiz_graph) - end - def file_button_text(assignment) return I18n.t("basics.file") unless assignment.accepted_file_type == ".pdf"