We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab05b9c commit 2a5a639Copy full SHA for 2a5a639
1 file changed
app/controllers/notifications_controller.rb
@@ -5,7 +5,9 @@ class NotificationsController < ApplicationController
5
before_action :authenticate_user!, only: [:index]
6
7
def index
8
- @notifications = Notification.unscoped.where(user: current_user).paginate(page: params[:page], per_page: 100)
+ @notifications = Notification.unscoped
9
+ .where(user: current_user)
10
+ .paginate(page: params[:page], per_page: 100)
11
.order(Arel.sql('is_read ASC, created_at DESC'))
12
13
if stale?(@notifications)
0 commit comments