This commit is contained in:
David Heinemeier Hansson
2025-04-12 14:06:11 +02:00
parent a9c6f8bceb
commit d3c5c86b21
+2 -2
View File
@@ -1,10 +1,10 @@
class NotificationsController < ApplicationController
def index
set_page_and_extract_portion_from Current.user.notifications.read.ordered
if @page.first?
@unread = Current.user.notifications.unread.ordered
end
set_page_and_extract_portion_from Current.user.notifications.read.ordered
end
def mark_read