gregbell/active_admin

View on GitHub
app/views/active_admin/resource/_index_table_actions_default.html.erb

Summary

Maintainability
Test Coverage
<% if show_action_authorized?(resource) %>
  <%= link_to view_label, resource_path(resource) %>
<% end %>
<% if edit_action_authorized?(resource) %>
  <%= link_to edit_label, edit_resource_path(resource) %>
<% end %>
<% if destroy_action_authorized?(resource) %>
  <%= link_to delete_label, resource_path(resource), method: :delete, data: { confirm: delete_confirmation_text } %>
<% end %>