This commit is contained in:
Sven Anders 2024-12-16 14:23:24 +01:00
parent 4ece5cb4a5
commit aa497a050d

View file

@ -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