Avoid unnecessary includes in StarredProjectsFinder

This commit is contained in:
Camil Staps 2019-01-28 19:43:31 +01:00
parent 2ca4d58165
commit b7b57b83cc
No known key found for this signature in database
GPG key ID: 4A9BFD4F6A415F83

View file

@ -2,7 +2,7 @@
class StarredProjectsFinder < ProjectsFinder
def initialize(user, params: {}, current_user: nil)
project_ids = user.starred_projects.includes(:creator).select(:id)
project_ids = user.starred_projects.select(:id)
super(params: params, current_user: current_user, project_ids_relation: project_ids)
end
end