Sha256: 084a59c55b05f4f2f02d0d91ba3ab41a84b42b561fd14946a58193ed861d9cad
Contents?: true
Size: 508 Bytes
Versions: 32
Compression:
Stored size: 508 Bytes
Contents
module Users class NotificationsController < ApplicationController def mark_as_unseen notification = Noticed::Notification.find(params[:id]) notification.mark_as_unseen! head :ok end def mark_as_seen # No handleo errores porque no deberÃa fallar, y si falla # se notifica a rollbar y al user no le pasa nada notifications = Noticed::Notification.where(id: params[:ids].split(',')) notifications.each(&:mark_as_seen!) head :ok end end end
Version data entries
32 entries across 32 versions & 1 rubygems