Show soft delete scopes in Rails Admin

This commit is contained in:
Karina Kwiatek 2022-07-27 21:18:14 +02:00
parent 5ef98c1733
commit a14e7252a6

View file

@ -12,6 +12,14 @@ RailsAdmin.config do |config|
end
config.current_user_method(&:current_user)
%w[Answer Appendable Comment Question User].each do |model_name|
config.model model_name do
list do
scopes [nil, :with_deleted, :only_deleted]
end
end
end
config.actions do
dashboard # mandatory
index # mandatory