Class: Course::LevelsController

Inherits:
ComponentController show all
Defined in:
app/controllers/course/levels_controller.rb

Instance Method Summary collapse

Methods included from ApplicationSignInCallbacksConcern

#sign_in

Methods included from ApplicationPaginationConcern

#page_param

Methods included from ApplicationAnnouncementsConcern

#global_announcements, #unread_global_announcements

Methods included from ApplicationInstanceUserConcern

#current_instance_user

Methods included from ApplicationUserTimeZoneConcern

#set_time_zone

Methods included from ApplicationUserConcern

#handle_access_denied, #publicly_accessible?

Methods included from ApplicationComponentsConcern

#handle_component_not_found

Instance Method Details

#createObject

:nodoc:


9
10
11
12
13
14
15
16
17
# File 'app/controllers/course/levels_controller.rb', line 9

def create #:nodoc:
  respond_to do |format|
    if current_course.mass_update_levels(params[:levels])
      format.json { render json: current_course.levels, status: :created }
    else
      format.json { render json: current_course.errors, status: :unprocessable_entity }
    end
  end
end

#indexObject

:nodoc:


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

def index #:nodoc:
end