diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-28 13:32:18 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2016-01-04 16:00:29 +0200 |
commit | 8b1844912561a7e6dd0cc361ea1514f2a340e275 (patch) | |
tree | 9a6c705fb9ac1c1e6c28f5ed712025c0b020fd1c /app/controllers/explore | |
parent | 57074d606b20516921ff2297e2f94262b58e3d3e (diff) | |
download | gitlab-ce-8b1844912561a7e6dd0cc361ea1514f2a340e275.tar.gz |
remove public field from namespace and refactoringnamespace-clean_up
Diffstat (limited to 'app/controllers/explore')
-rw-r--r-- | app/controllers/explore/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/explore/groups_controller.rb b/app/controllers/explore/groups_controller.rb index 9575a87ee41..a9bf4321f73 100644 --- a/app/controllers/explore/groups_controller.rb +++ b/app/controllers/explore/groups_controller.rb @@ -1,6 +1,6 @@ class Explore::GroupsController < Explore::ApplicationController def index - @groups = GroupsFinder.new.execute(current_user) + @groups = Group.order_id_desc @groups = @groups.search(params[:search]) if params[:search].present? @groups = @groups.sort(@sort = params[:sort]) @groups = @groups.page(params[:page]).per(PER_PAGE) |