Skip to content

Commit

Permalink
remove unnecessry hash brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Apr 8, 2024
1 parent d38faac commit 2fa7567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/courses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2fa7567

Please sign in to comment.