提交 7429eb3b 编写于 作者: R Reuben Pereira

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

上级 6572e045
......@@ -70,7 +70,7 @@ module Banzai
# 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])
.where_full_path_in(projects)
.index_by(&:full_path)
.transform_keys(&:downcase)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册