You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
372 B
14 lines
372 B
class Users::ShixunsController < Users::BaseController
|
|
def index
|
|
shixuns = Users::ShixunService.new(observed_user, query_params).call
|
|
|
|
@count = shixuns.count
|
|
@shixuns = paginate(shixuns.includes(:first_tag_repertoire), special: true)
|
|
end
|
|
|
|
private
|
|
|
|
def query_params
|
|
params.permit(:category, :status, :sort_by, :sort_direction)
|
|
end
|
|
end |