From aa497a050d4297d16a14f690f1ca37397c10a80a Mon Sep 17 00:00:00 2001 From: Sven Anders Date: Mon, 16 Dec 2024 14:23:24 +0100 Subject: [PATCH] See coderview https://github.com/Freika/dawarich/pull/548 --- app/controllers/notifications_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index d4d7df17..0516063c 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -20,7 +20,7 @@ class NotificationsController < ApplicationController def destroy_all - current_user.notifications.delete_all() + current_user.notifications.destroy_all redirect_to notifications_url, notice: 'All notifications where successfully destroyed.', status: :see_other end