saucy/app/controllers/notifications_controller.rb

20 lines
416 B
Ruby
Raw Normal View History

2022-07-16 10:27:43 +00:00
class NotificationsController < ApplicationController
before_action :require_login
before_action :set_notification
# POST /notifications/1/deliver
def deliver
@notification.deliver!
redirect_to @notification.member
end
private
# Use callbacks to share common setup or constraints between actions.
def set_notification
@notification = Notification.find(params[:id])
end
end