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.
educoder/app/controllers/users/subjects_controller.rb

14 lines
365 B

6 years ago
class Users::SubjectsController < Users::BaseController
def index
subjects = Users::SubjectService.new(observed_user, query_params).call
@count = subjects.count
@subjects = paginate(subjects.includes(:user, :repertoire), special: true)
end
private
def query_params
params.permit(:category, :status, :sort_direction)
end
end