Allow for multiple notifications to be read
cc @kevinmcconnell
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user