We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a391822 commit 37715edCopy full SHA for 37715ed
1 file changed
app/controllers/notifications_controller.rb
@@ -7,7 +7,7 @@ class NotificationsController < ApplicationController
7
authorize_resource :notification, only: :read
8
9
def index
10
- @notifications = @user.notifications.group_by(&:read)
+ @notifications = @user.notifications.order(updated_at: :desc).group_by(&:read)
11
end
12
13
def read
0 commit comments