Skip to content

Commit

Permalink
Use shorter render call in admin/webhooks view (#30071)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Apr 29, 2024
1 parent bbf1b60 commit 2739d8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/webhooks/edit.html.haml
Expand Up @@ -2,6 +2,6 @@
= t('admin.webhooks.edit')

= simple_form_for @webhook, url: admin_webhook_path(@webhook) do |form|
= render partial: 'form', object: form
= render form
.actions
= form.button :button, t('generic.save_changes'), type: :submit
2 changes: 1 addition & 1 deletion app/views/admin/webhooks/new.html.haml
Expand Up @@ -2,6 +2,6 @@
= t('admin.webhooks.new')

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

0 comments on commit 2739d8d

Please sign in to comment.