BigW Consortium Gitlab

groups_controller.rb 306 Bytes
Newer Older
1
class Explore::GroupsController < Explore::ApplicationController
2
  def index
3
    @groups = GroupsFinder.new.execute(current_user)
4 5
    @groups = @groups.search(params[:search]) if params[:search].present?
    @groups = @groups.sort(@sort = params[:sort])
6
    @groups = @groups.page(params[:page])
7 8
  end
end