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.
18 lines
399 B
18 lines
399 B
6 years ago
|
class Ecs::ScoreLevelsController < Ecs::CourseBaseController
|
||
|
def show
|
||
|
@score_levels = current_course.ec_score_levels
|
||
|
end
|
||
|
|
||
|
def create
|
||
|
Ecs::CreateScoreLevelsService.call(current_course, create_params)
|
||
|
@score_levels = current_course.ec_score_levels
|
||
|
|
||
|
render 'show'
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def create_params
|
||
|
params.permit(score_levels: %i[id score level])
|
||
|
end
|
||
|
end
|