3 lines
145 B
Plaintext
3 lines
145 B
Plaintext
- if policy(model).index?
|
|
li = link_to(model.model_name.human(count: 2), send(:"#{model.model_name.collection}_path"), class: 'dropdown-item')
|