diff options
author | Camil Staps <info@camilstaps.nl> | 2019-01-25 23:53:00 +0300 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2019-08-07 21:49:13 +0300 |
commit | 59976090b52d401dc4d23b726b2168186524f269 (patch) | |
tree | 503fb6f0563c866ea1776be3f5ad6bf88672ae92 /app/finders | |
parent | 5b20df0a9276bc1250dc8b307adb161b24d9c255 (diff) |
Add /starrers view for projects
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/users_finder.rb | 5 |
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 |