summaryrefslogtreecommitdiff
path: root/app/controllers/notifications_controller.rb
blob: 21d3ed45f51d6e55430180c2eb23da6143be6202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class NotificationsController < ApplicationController
  before_action :require_user

  skip_authorization_check

  def index
    @title = 'Notification Area'
    @notifications = current_user.notifications.includes(:actor, :actor_child).page(params[:page]).per(25).order(updated_at: :desc)
  end
end