]> git.openstreetmap.org Git - rails.git/blob - app/controllers/notifications_controller.rb
Implement web notifications for GPX imports completion
[rails.git] / app / controllers / notifications_controller.rb
1 # frozen_string_literal: true
2
3 class NotificationsController < ApplicationController
4   layout :site_layout
5
6   before_action :authorize_web
7   before_action :set_locale
8
9   authorize_resource :class => false
10
11   before_action :check_database_readable
12
13   def index
14     @notifications = UserNotifications.new(current_user)
15   end
16 end