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
1 changed files with 2 additions and 1 deletions

View File

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