Class: CanvasShim::SettingsApi::V1::UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/canvas_shim/settings_api/v1/users_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#validate_key

Instance Method Details

#updateObject



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