Default to delete method for the destroy action

This is consistent with what Rails does.
This commit is contained in:
Javi Martín
2024-03-06 15:07:14 +01:00
parent 54977116e7
commit 251a5fb6e9
12 changed files with 42 additions and 14 deletions

View File

@@ -38,7 +38,6 @@ class Admin::TableActionsComponent < ApplicationComponent
def destroy_options
{
method: :delete,
confirm: options[:destroy_confirmation] || true
}.merge(options[:destroy_options] || {})
end