Sha256: 1b68dc90521a9ec179fef4850eec6e2853c43129f206b58613150e0318e850ed
Contents?: true
Size: 519 Bytes
Versions: 42
Compression:
Stored size: 519 Bytes
Contents
module Users class NotificationsController < PgEngine.config.users_controller 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
42 entries across 42 versions & 1 rubygems