Class: Course::Admin::VideoSettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject


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

def edit; end

#updateObject


7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/course/admin/video_settings_controller.rb', line 7

def update
  if @settings.update(video_settings_params) &&
     current_course.update_attributes(video_tabs_params) &&
     current_course.save

    redirect_to course_admin_videos_path(current_course), success: t('.success')
  else
    render 'edit'
  end
end