- if entry
  - attribute.klass.find_by(id: entry).send(attribute.name).each do |resource|
    = link_to "##{ resource.id }", edit_polymorphic_path(resource)

- if entry && attribute.klass.exists?(entry)
  - attribute.klass.find_by(id: entry).send(attribute.name).each do |resource|
    = link_to "##{ resource.id }", edit_polymorphic_path(resource)

Add condition if resource was deleted for has_many partial
Add condition if resource was deleted for has_many partial
