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 20:51:49 +0300
committerCamil Staps <info@camilstaps.nl>2019-08-07 21:49:15 +0300
commita052f68116363109b5d49c9738e711a12257ac7d (patch)
tree4142b923ae57edf3e997501b8ca80955a02f7921 /app/finders
parent6baff6504b234e209a5e1d78349dbd2589d5d7e8 (diff)
Add pagination to {project}/starrers view
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/users_star_projects_finder.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/finders/users_star_projects_finder.rb b/app/finders/users_star_projects_finder.rb
index 66b83fa8f8e..5a031a1f0cd 100644
--- a/app/finders/users_star_projects_finder.rb
+++ b/app/finders/users_star_projects_finder.rb
@@ -12,7 +12,6 @@ class UsersStarProjectsFinder
def execute
stars = UsersStarProject.all.order_id_desc
stars = by_search(stars)
- stars = by_project(stars)
stars
end
@@ -20,12 +19,6 @@ class UsersStarProjectsFinder
private
def by_search(items)
- return items unless params[:search].present?
-
- items.search(params[:search])
- end
-
- def by_project(items)
- params[:project].present? ? items.by_project(params[:project]) : items
+ params[:search].present? ? items.search(params[:search]) : items
end
end