Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2019-01-28 21:43:31 +0300
committerCamil Staps <info@camilstaps.nl>2019-08-07 21:49:15 +0300
commitb7b57b83cc294727736c2276bd72a7e47c313e68 (patch)
tree2c9be027248ee9a77f896400aae89a370f9f30d6
parent2ca4d58165e3c135004b088211aeaf5743065e75 (diff)
Avoid unnecessary includes in StarredProjectsFinder
-rw-r--r--app/finders/starred_projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/starred_projects_finder.rb b/app/finders/starred_projects_finder.rb
index 5d0c6820a26..0a67a1242ff 100644
--- a/app/finders/starred_projects_finder.rb
+++ b/app/finders/starred_projects_finder.rb
@@ -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