Update Bootstrap from v4 to v5
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
- if policy(object).edit?
|
||||
// default value for fetch will always be evaluated even if it is not returned
|
||||
- link_target = local_assigns.fetch(:path, false) || send(:"edit_#{object.class.name.underscore}_path", object)
|
||||
= link_to(t('shared.edit'), link_target, class: 'btn btn-secondary float-right')
|
||||
= link_to(t('shared.edit'), link_target, class: 'btn btn-secondary float-end')
|
||||
|
Reference in New Issue
Block a user