In your rails_admin.rb file, you can add default actions for your models to which you can add exceptions, as shown here .
Here is an example:
config.actions do
dashboard
index
new do
except ['SomeModel']
end
export
bulk_delete
show
edit do
except ['SomeOtherModel']
end
delete
show_in_app
end
Here is a link to the rails_admin documentation on actions: https://github.com/sferik/rails_admin/wiki/Actions
source
share