gitlab-org--gitlab-foss/app/controllers/explore/groups_controller.rb

12 lines
433 B
Ruby
Raw Normal View History

2015-04-30 13:06:18 -04:00
class Explore::GroupsController < Explore::ApplicationController
skip_before_action :authenticate_user!,
:reject_blocked, :set_current_user_for_observers
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