diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:40:22 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:40:22 -0800 |
commit | 86d5e20664856a0f6635ba184dd85a4f342f8b8f (patch) | |
tree | 72c9bd5c48be6a36eed033dc67cdd2515370b9be /app/controllers/explore | |
parent | 7ad5fd6ce7d1180480e84f5596d1f80b0fe1091f (diff) | |
download | gitlab-ce-86d5e20664856a0f6635ba184dd85a4f342f8b8f.tar.gz |
Respect star ordering on explore page
Diffstat (limited to 'app/controllers/explore')
-rw-r--r-- | app/controllers/explore/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb index d75fd8e72fa..0e5891ae807 100644 --- a/app/controllers/explore/projects_controller.rb +++ b/app/controllers/explore/projects_controller.rb @@ -18,7 +18,7 @@ class Explore::ProjectsController < ApplicationController def starred @starred_projects = ProjectsFinder.new.execute(current_user) - @starred_projects = @starred_projects.order('star_count DESC') + @starred_projects = @starred_projects.reorder('star_count DESC') @starred_projects = @starred_projects.page(params[:page]).per(10) end end |