From 165b54ec32d86b5a7856df1995491c39ab78b121 Mon Sep 17 00:00:00 2001 From: Bram Windey Date: Mon, 15 Jan 2024 14:43:58 +0100 Subject: [PATCH] Implement feedback --- app/views/submissions/_submission_basic.json.jbuilder | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/views/submissions/_submission_basic.json.jbuilder b/app/views/submissions/_submission_basic.json.jbuilder index 60c98d1ba5..a98cba867b 100644 --- a/app/views/submissions/_submission_basic.json.jbuilder +++ b/app/views/submissions/_submission_basic.json.jbuilder @@ -6,14 +6,6 @@ else json.user user_url(submission.user.id, format: :json) end json.has_annotations submission.annotated? - -if submission.course.nil? - json.exercise activity_url(submission.exercise, format: :json) -else - json.exercise course_activity_url(submission.course, submission.exercise, format: :json) -end - +json.exercise activity_scoped_url(activity: submission.exercise, course: submission.course, options: { format: :json }) json.exercise_name submission.exercise.name - - json.course course_url(submission.course, format: :json) if submission.course