mostrar notificaciones a los usuarios cuando alguien comenta en su

debate o responde a su comentario
This commit is contained in:
Julian Herrero
2015-10-06 12:11:20 +02:00
committed by rgarcia
parent ba0ce4e14b
commit d9ba3edc2a
17 changed files with 304 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class NotificationsController < ApplicationController
before_action :authenticate_user!
load_and_authorize_resource class: "User"
def index
@notifications = current_user.notifications.unread.recent.for_render
end
end