Sha256: 45d09e4160a518a28496bfee75dfd9247330627518e43bd7a49573aa44cc0ed3
Contents?: true
Size: 436 Bytes
Versions: 33
Compression:
Stored size: 436 Bytes
Contents
module AmaLayout module Api module V1 class NotificationsController < ApplicationController before_action :require_login # DELETE /api/v1/notifications # Dismiss all user notifications def dismiss_all notifications = current_user.notifications notifications.each(&:dismiss!) notifications.save head :no_content end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems