Eager load project routes for issue references

This reduces the number of queries necessary when displaying the
activity page of a group.
This commit is contained in:
Yorick Peterse 2018-05-15 14:47:38 +02:00
parent 265b1fafe6
commit 954968c684
No known key found for this signature in database
GPG key ID: EDD30D2BEB691AC9

View file

@ -69,7 +69,8 @@ module Banzai
{ group: [:owners, :group_members] }, { group: [:owners, :group_members] },
:invited_groups, :invited_groups,
:project_members, :project_members,
:project_feature :project_feature,
:route
] ]
} }
), ),