diff --git a/app/controllers/webhooks_controller.rb b/app/controllers/webhooks_controller.rb index 65299121b..e4cf469c1 100644 --- a/app/controllers/webhooks_controller.rb +++ b/app/controllers/webhooks_controller.rb @@ -46,6 +46,6 @@ class WebhooksController < ApplicationController end def webhook_params - params.require(:webhook).permit(:name, :url, subscribed_actions: []) + params.require(:webhook).permit(:name, :url, :active, subscribed_actions: []) end end diff --git a/app/views/webhooks/edit.html.erb b/app/views/webhooks/edit.html.erb index 1c2513a1e..eee4de58e 100644 --- a/app/views/webhooks/edit.html.erb +++ b/app/views/webhooks/edit.html.erb @@ -11,6 +11,11 @@ <%= form.text_field :name, required: true, autofocus: true, class: "input", placeholder: "Name your Webhook…", data: { action: "keydown.esc@document->form#cancel" } %> +
<%= @webhook.signing_secret %>