% collection.each do |item| %>
>
<% resource_class.admin_options.column_hash.each do |name, value| %>
<% if value.is_a?(Array) %>
<%= value.last.call(item) %> |
<% else %>
<%= item.send(:"#{name.to_s}") %> |
<% end %>
<% end %>
<%= link_to 'Edit', transit.edit_polymorphic_path(item) %> |
<%= link_to 'Delete', transit.polymorphic_path(item), method: :delete, confirm: 'Are you sure?' %> |
<% end %>