Use shorter `render` call in `admin/webhooks` view (#30071)

pull/30114/head
Matt Jankowski 2024-04-29 05:10:23 -04:00 committed by GitHub
parent bbf1b603e0
commit 2739d8d5a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
= t('admin.webhooks.edit') = t('admin.webhooks.edit')
= simple_form_for @webhook, url: admin_webhook_path(@webhook) do |form| = simple_form_for @webhook, url: admin_webhook_path(@webhook) do |form|
= render partial: 'form', object: form = render form
.actions .actions
= form.button :button, t('generic.save_changes'), type: :submit = form.button :button, t('generic.save_changes'), type: :submit

View File

@ -2,6 +2,6 @@
= t('admin.webhooks.new') = t('admin.webhooks.new')
= simple_form_for @webhook, url: admin_webhooks_path do |form| = simple_form_for @webhook, url: admin_webhooks_path do |form|
= render partial: 'form', object: form = render form
.actions .actions
= form.button :button, t('admin.webhooks.add_new'), type: :submit = form.button :button, t('admin.webhooks.add_new'), type: :submit