Class: Course::Admin::AssessmentSettingsController

Inherits:
Controller
  • Object
show all
Defined in:
app/controllers/course/admin/assessment_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject


5
6
7
# File 'app/controllers/course/admin/assessment_settings_controller.rb', line 5

def edit
  @categories = current_course.assessment_categories.includes(:tabs)
end

#updateObject


9
10
11
12
13
14
15
# File 'app/controllers/course/admin/assessment_settings_controller.rb', line 9

def update
  if current_course.update_attributes(category_params)
    redirect_to course_admin_assessments_path, success: t('.success')
  else
    render 'edit'
  end
end