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-25 23:53:00 +0300
committerCamil Staps <info@camilstaps.nl>2019-08-07 21:49:13 +0300
commit59976090b52d401dc4d23b726b2168186524f269 (patch)
tree503fb6f0563c866ea1776be3f5ad6bf88672ae92 /app/finders
parent5b20df0a9276bc1250dc8b307adb161b24d9c255 (diff)
Add /starrers view for projects
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/users_finder.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/finders/users_finder.rb b/app/finders/users_finder.rb
index 81ae50c0bd1..2f3fc24b243 100644
--- a/app/finders/users_finder.rb
+++ b/app/finders/users_finder.rb
@@ -37,6 +37,7 @@ class UsersFinder
users = by_2fa(users)
users = by_created_at(users)
users = by_custom_attributes(users)
+ users = by_has_starred(users)
users
end
@@ -94,4 +95,8 @@ class UsersFinder
users
end
end
+
+ def by_has_starred(items)
+ params[:has_starred].present? ? items.has_starred(params[:has_starred]) : items
+ end
end