Class: Course::Admin::LessonPlanSettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject


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

def edit
  @page_data = page_data.to_json
end

#updateObject


10
11
12
13
14
15
16
17
18
# File 'app/controllers/course/admin/lesson_plan_settings_controller.rb', line 10

def update
  if update_lesson_plan_items_settings &&
     update_lesson_plan_component_settings &&
     current_course.save
    render json: page_data
  else
    head :bad_request
  end
end