Files
fizzy/app/controllers/webhooks/activations_controller.rb
T
2025-09-16 20:04:20 +02:00

15 lines
335 B
Ruby

class Webhooks::ActivationsController < ApplicationController
before_action :ensure_can_administer
before_action :set_webhook
def create
@webhook.activate unless @webhook.active?
redirect_to @webhook, status: :see_other
end
private
def set_webhook
@webhook = Webhook.find(params[:webhook_id])
end
end