Welcome to mirror list, hosted at ThFree Co, Russian Federation.

groups_controller.rb « explore « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9575a87ee4157bdc69bb7a5a7913e1399af91480 (plain)
1
2
3
4
5
6
7
8
class Explore::GroupsController < Explore::ApplicationController
  def index
    @groups = GroupsFinder.new.execute(current_user)
    @groups = @groups.search(params[:search]) if params[:search].present?
    @groups = @groups.sort(@sort = params[:sort])
    @groups = @groups.page(params[:page]).per(PER_PAGE)
  end
end