Class: Course::Admin::VirtualClassroomSettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject

:nodoc:


5
# File 'app/controllers/course/admin/virtual_classroom_settings_controller.rb', line 5

def edit; end

#updateObject

:nodoc:


7
8
9
10
11
12
13
# File 'app/controllers/course/admin/virtual_classroom_settings_controller.rb', line 7

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