]> git.openstreetmap.org Git - rails.git/blob - app/controllers/notifications_controller.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / controllers / notifications_controller.rb
1 # frozen_string_literal: true
2
3 class NotificationsController < ApplicationController
4   include PaginationMethods
5
6   layout :site_layout
7
8   before_action :authorize_web
9   before_action :set_locale
10
11   authorize_resource :class => false
12
13   before_action :check_database_readable
14
15   def index
16     records = UserNotifications.new(current_user).notification_records
17     @notifications = get_page_items(records)
18     @params = params.permit
19   end
20 end