Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the delete option form activeAdmin?

in rails gem active admin I want to remove the delete option form the default_actions while I still need the edit and show action , is there any way to do it ?

like image 450
Kareem Hashem Avatar asked Oct 12 '11 10:10

Kareem Hashem


1 Answers

You add a call to actions to every Active Admin resource:

ActiveAdmin.register Foobar do   actions :all, :except => [:destroy] end 
like image 192
Thomas Watson Avatar answered Sep 20 '22 19:09

Thomas Watson