Class: CanvasShim::SettingsApi::V1::UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CanvasShim::SettingsApi::V1::UsersController
- Defined in:
- app/controllers/canvas_shim/settings_api/v1/users_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#update ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/canvas_shim/settings_api/v1/users_controller.rb', line 8 def update settings.each do |key, value| SettingsService.update_user_setting( id: params[:id], setting: key, value: value ) end render json: { status: 'ok' } end |