mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:19:52 +01:00
Show soft delete scopes in Rails Admin
This commit is contained in:
parent
5ef98c1733
commit
a14e7252a6
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,14 @@ RailsAdmin.config do |config|
|
||||||
end
|
end
|
||||||
config.current_user_method(&:current_user)
|
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
|
config.actions do
|
||||||
dashboard # mandatory
|
dashboard # mandatory
|
||||||
index # mandatory
|
index # mandatory
|
||||||
|
|
Loading…
Reference in a new issue