debian-mirror-gitlab/app/controllers/explore/groups_controller.rb
2016-06-02 11:05:42 +05:30

8 lines
306 B
Ruby

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])
end
end