Skip to content

Commit

Permalink
remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Dec 8, 2023
1 parent 8cee213 commit a6565e1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/helpers/assignments_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a6565e1

Please sign in to comment.