Allow for multiple notifications to be read

cc @kevinmcconnell
This commit is contained in:
David Heinemeier Hansson
2025-04-17 11:39:05 +02:00
parent 6fd5168c21
commit a5de4863fa
4 changed files with 22 additions and 5 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ class Cards::ReadingsController < ApplicationController
include CardScoped
def create
Current.user.notifications.unread.where(card: @card).read_all
@notifications = Current.user.notifications.unread.ordered.limit(20)
@notifications = Current.user.notifications.where(card: @card)
@notifications.each(&:read)
end
end