Class: Course::Admin::ComponentSettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject

:nodoc:


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

def edit #:nodoc:
end

#updateObject

:nodoc:


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

def update #:nodoc:
  if @settings.update(settings_components_params) && current_course.save!
    redirect_to course_admin_components_path(current_course), success: t('.success')
  else
    render 'edit'
  end
end