Class: Api::CoursesController

Inherits:
BaseController show all
Defined in:
app/controllers/api/courses_controller.rb

Instance Method Summary collapse

Methods included from OnBaseOrganizationOnly

#ensure_base_organization!

Methods included from Mumuki::Laboratory::Controllers::CurrentOrganization

#organization_name, #set_current_organization!, #visit_organization!

Methods included from WithAuthorization

#authorization_slug, #authorize_janitor!, #authorize_owner!

Instance Method Details

#createObject



6
7
8
9
10
# File 'app/controllers/api/courses_controller.rb', line 6

def create
  @course.save!
  @course.notify!
  render json: @course
end