From 5dc6e0394fe7f27478f26f7e5456c4b72a411e76 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 16 Apr 2025 17:12:20 +0200 Subject: [PATCH] Style --- app/controllers/notifications_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 44dc0f604..d188e3a1e 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -1,9 +1,6 @@ class NotificationsController < ApplicationController def index - unless current_page_param - @unread = Current.user.notifications.unread.ordered - end - + @unread = Current.user.notifications.unread.ordered unless current_page_param set_page_and_extract_portion_from Current.user.notifications.read.ordered respond_to do |format|