clean up rails_admin configuration

This commit is contained in:
Karol
2020-11-26 17:20:28 +01:00
parent f98de3b66b
commit 79c1532742
3 changed files with 5 additions and 9 deletions

View File

@@ -76,7 +76,4 @@ class ApplicationPolicy
end
private :require_user!
end
[:dashboard?, :index?, :new?, :export?, :bulk_delete?, :show?, :edit?, :delete?, :show_in_app?,].each do |action|
define_method(action) { admin? }
end
end