Skip to content

Commit 2a5a639

Browse files
committed
minor cleanup of notifications controller
1 parent ab05b9c commit 2a5a639

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/controllers/notifications_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class NotificationsController < ApplicationController
55
before_action :authenticate_user!, only: [:index]
66

77
def index
8-
@notifications = Notification.unscoped.where(user: current_user).paginate(page: params[:page], per_page: 100)
8+
@notifications = Notification.unscoped
9+
.where(user: current_user)
10+
.paginate(page: params[:page], per_page: 100)
911
.order(Arel.sql('is_read ASC, created_at DESC'))
1012

1113
if stale?(@notifications)

0 commit comments

Comments
 (0)