Class: Api::UsersController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Api::UsersController
- Includes:
- UsersControllerTemplate
- Defined in:
- app/controllers/api/users_controller.rb
Instance Method Summary collapse
Methods included from WithUserParams
#permissible_params, #user_name_params, #user_params
Methods included from OnBaseOrganizationOnly
Methods included from Mumuki::Laboratory::Controllers::CurrentOrganization
#organization_name, #set_current_organization!, #visit_organization!
Methods included from Mumuki::Laboratory::Controllers::DynamicErrors
#bad_record, #blocked_forum, #disabled, #disabled_organization, #forbidden, #gone, #internal_server_error, #not_found, #render_error, #unauthorized, #unprepared_organization
Instance Method Details
#authorization_slug ⇒ Object
17 18 19 |
# File 'app/controllers/api/users_controller.rb', line 17 def '_/_' end |
#create ⇒ Object
6 7 8 9 |
# File 'app/controllers/api/users_controller.rb', line 6 def create @user.save_and_notify! render json: @user.to_resource_h end |
#update ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/api/users_controller.rb', line 11 def update @user.assign_attributes user_name_params @user.verify_name! render json: @user.to_resource_h end |