activescaffold/active_scaffold

View on GitHub
app/views/active_scaffold_overrides/_update_actions.html.erb

Summary

Maintainability
Test Coverage
<div class="active-scaffold-header">
  <div class="actions">
    <% active_scaffold_config.action_links.member.each do |link| -%>
      <%
        next unless link.action == 'index'
        next if skip_action_link?(link, record)
        auth, reason = action_link_authorized?(link, record)
        next unless auth
      -%>
      <%= render_action_link(link, record, authorized: true) -%>
    <% end -%>
  </div>
</div>