From 2fa7567a2f7e41cd7644b8ecd19fa67200312876 Mon Sep 17 00:00:00 2001 From: fosterfarrell9 <28628554+fosterfarrell9@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:49:50 +0200 Subject: [PATCH] remove unnecessry hash brackets --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index acfd1cbae..ab45b80f2 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -100,7 +100,7 @@ def course_params { tag_ids: [], preceding_course_ids: [], division_ids: [] }] - allowed_params.push({ editor_ids: [] }) if current_user.admin? + allowed_params.push(editor_ids: []) if current_user.admin? params.require(:course).permit(allowed_params) end