Skip to content

Can I customize the behaviour of the DELETE button to soft delete instead? #2550

Discussion options

You must be logged in to vote

There are a few ways of doing that.

  1. Use show_controls to hide the destroy button and add the soft-delete one on the show page
  2. Use the authorization feature to remove the ability to destroy a record for a user

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@glaucocustodio
Comment options

@adrianthedev
Comment options

@glaucocustodio
Comment options

Answer selected by glaucocustodio
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Paul-Bob
Comment options

Comment options

You must be logged in to vote
1 reply
@kira4ka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants