1 # frozen_string_literal: true
3 class NotificationsController < ApplicationController
4 include PaginationMethods
8 before_action :authorize_web
9 before_action :set_locale
11 authorize_resource :class => false
13 before_action :check_database_readable
16 records = UserNotifications.new(current_user).notification_records
17 @notifications = get_page_items(records)
18 @params = params.permit