@@ -2,6 +2,6 @@ class NotificationsController < ApplicationController
before_action :authenticate_user!
def index
- @notifications = Notification.where(recipient: current_user)
+ @notifications = current_user.notifications
end