lib/para/markup/resources_table.rb in para-0.7.1 vs lib/para/markup/resources_table.rb in para-0.7.2

- old
+ new

@@ -167,19 +167,19 @@ content_tag(:i, '', class: 'fa fa-pencil') end end def delete_button(resource) - path = component.relation_path(resource) + path = component.relation_path(resource, return_to: view.request.fullpath) options = { method: :delete, data: { confirm: ::I18n.t('para.list.delete_confirmation') }, class: 'btn btn-sm btn-icon-danger btn-shadow hint--left', aria: { - label: ::I18n.t('para.shared.destroy') + label: ::I18n.t('para.shared.destroy') } } view.link_to(path, options) do content_tag(:i, '', class: 'fa fa-times')