10 lines
224 B
Ruby
10 lines
224 B
Ruby
class NotificationsController < ApplicationController
|
|
before_action :authenticate_user!
|
|
load_and_authorize_resource class: "User"
|
|
|
|
def index
|
|
@notifications = current_user.notifications.recent.for_render
|
|
end
|
|
|
|
end
|