Class: Course::Admin::AnnouncementSettingsController

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

Instance Method Summary collapse

Instance Method Details

#editObject

:nodoc:


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

def edit #:nodoc:
end

#updateObject

:nodoc:


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

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