Add Rails admin

This commit is contained in:
Karol
2020-11-26 17:11:18 +01:00
parent c32e7586cd
commit f98de3b66b
7 changed files with 117 additions and 0 deletions

View File

@@ -76,4 +76,7 @@ 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