Avoid unnecessary includes in StarredProjectsFinder
This commit is contained in:
parent
2ca4d58165
commit
b7b57b83cc
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class StarredProjectsFinder < ProjectsFinder
|
class StarredProjectsFinder < ProjectsFinder
|
||||||
def initialize(user, params: {}, current_user: nil)
|
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)
|
super(params: params, current_user: current_user, project_ids_relation: project_ids)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue