notifications_controller.rb 178 B

1234567
  1. class NotificationsController < ApplicationController
  2. before_action :authenticate_user!
  3. def index
  4. @notifications = Notification.where(recipient: current_user)
  5. end
  6. end