diff options
Diffstat (limited to 'app/finders/starred_projects_finder.rb')
-rw-r--r-- | app/finders/starred_projects_finder.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/finders/starred_projects_finder.rb b/app/finders/starred_projects_finder.rb index e38cb8c4569..fcb469d1d17 100644 --- a/app/finders/starred_projects_finder.rb +++ b/app/finders/starred_projects_finder.rb @@ -2,8 +2,10 @@ class StarredProjectsFinder < ProjectsFinder def initialize(user, params: {}, current_user: nil) - 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: user.starred_projects.select(:id) + ) end end |