Commit bc35f0fb authored by Reuben Pereira's avatar Reuben Pereira
Browse files

Eager load a project's route and its namespace with route in project_reference_filter

parent f3f62d7b5894
......@@ -70,7 +70,7 @@ def project_link_filter(text, link_content: nil)
# The keys of this Hash are the project paths, the values the
# corresponding Project objects.
def projects_hash
@projects ||= Project.eager_load(:namespace, :route)
@projects ||= Project.eager_load(:route, namespace: [:route])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment