Class: Hyrax::MailboxController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::MailboxController
- Defined in:
- app/controllers/hyrax/mailbox_controller.rb
Instance Method Summary collapse
Instance Method Details
#delete_all ⇒ Object
9 10 11 12 |
# File 'app/controllers/hyrax/mailbox_controller.rb', line 9 def delete_all user_mailbox.delete_all redirect_to hyrax.notifications_path, alert: t('hyrax.mailbox.notifications_deleted') end |
#destroy ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/hyrax/mailbox_controller.rb', line 14 def destroy = params[:id] alert = user_mailbox.destroy() redirect_to hyrax.notifications_path, alert: alert end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/hyrax/mailbox_controller.rb', line 5 def index @messages = user_mailbox.inbox end |