From d3c5c86b217009e31d33cf531445fb4c4343cab8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 12 Apr 2025 14:06:11 +0200 Subject: [PATCH] Style --- app/controllers/notifications_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 403828c2b..6cb5e5985 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -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