Sha256: 0b7b83c6ff2536468f409b2ed840fcb937189933eb1086c70e37bd6bbc90b303
Contents?: true
Size: 484 Bytes
Versions: 6
Compression:
Stored size: 484 Bytes
Contents
class MailboxController < ApplicationController before_action :authenticate_user! def index @messages = user_mailbox.inbox end def delete_all alert = user_mailbox.delete_all redirect_to sufia.notifications_path, alert: alert end def destroy message_id = params[:id] alert = user_mailbox.destroy(message_id) redirect_to sufia.notifications_path, alert: alert end private def user_mailbox UserMailbox.new(current_user) end end
Version data entries
6 entries across 6 versions & 1 rubygems