2015-04-30 13:06:18 -04:00
|
|
|
class Explore::GroupsController < Explore::ApplicationController
|
2014-07-11 12:29:51 -04:00
|
|
|
def index
|
2016-03-01 10:22:29 -05:00
|
|
|
@groups = GroupsFinder.new.execute(current_user)
|
2014-07-11 12:29:51 -04:00
|
|
|
@groups = @groups.search(params[:search]) if params[:search].present?
|
|
|
|
@groups = @groups.sort(@sort = params[:sort])
|
2016-03-19 17:37:54 -04:00
|
|
|
@groups = @groups.page(params[:page])
|
2014-07-11 12:29:51 -04:00
|
|
|
end
|
|
|
|
end
|