Structure main menu

This commit is contained in:
Maximilian Grundke
2018-04-10 19:21:01 +02:00
parent 7e5f87af0f
commit cf22b26c84
5 changed files with 26 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
- if policy(model).index?
li = link_to(model.model_name.human(count: 2), send(:"#{model.model_name.collection}_path"))