Default to delete method for the destroy action
This is consistent with what Rails does.
This commit is contained in:
@@ -38,7 +38,6 @@ class Admin::TableActionsComponent < ApplicationComponent
|
||||
|
||||
def destroy_options
|
||||
{
|
||||
method: :delete,
|
||||
confirm: options[:destroy_confirmation] || true
|
||||
}.merge(options[:destroy_options] || {})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user