mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:29:53 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue