2015-09-11 14:41:01 +05:30
|
|
|
class Explore::GroupsController < Explore::ApplicationController
|
2014-09-02 18:07:02 +05:30
|
|
|
def index
|
2016-06-02 11:05:42 +05:30
|
|
|
@groups = GroupsFinder.new.execute(current_user)
|
2014-09-02 18:07:02 +05:30
|
|
|
@groups = @groups.search(params[:search]) if params[:search].present?
|
|
|
|
@groups = @groups.sort(@sort = params[:sort])
|
2016-06-02 11:05:42 +05:30
|
|
|
@groups = @groups.page(params[:page])
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|