Commit 1297a1bd authored by Gabriel Mazetto's avatar Gabriel Mazetto

Remove STI #becomes call from Dashboard index

By defining the correct route helper path instead of relying on the
polymorphic route, we don't invalidate the eager-loaded relations.

This change removes remaining N+1 queries
parent d81c6460
......@@ -174,7 +174,7 @@
%h4 Latest projects
- @projects.each do |project|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated-60'
= link_to project.full_name, admin_project_path(project), class: 'str-truncated-60'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment