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: ada7031fea4318add194b9862790e63815e4f92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Explore::GroupsController < ApplicationController
  skip_before_filter :authenticate_user!,
                     :reject_blocked, :set_current_user_for_observers

  layout "explore"

  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(20)
  end
end