Enable updating additional account information from user preferences via rest api (#6789)
* Enable updating additional account information from user preferences via rest api Resolves #6553 * Pacify rubocop * Decoerce incoming settings in UserSettingsDecorator * Create user preferences hash directly from incoming credentials instead of going through ActionController::Parameters * Clean up user preferences update * Use ActiveModel::Type::Boolean instead of manually checking stringified number equivalence
Showing
- app/controllers/api/v1/accounts/credentials_controller.rb 12 additions, 0 deletionsapp/controllers/api/v1/accounts/credentials_controller.rb
- app/lib/user_settings_decorator.rb 2 additions, 2 deletionsapp/lib/user_settings_decorator.rb
- spec/controllers/api/v1/accounts/credentials_controller_spec.rb 6 additions, 0 deletions...ontrollers/api/v1/accounts/credentials_controller_spec.rb
- spec/lib/user_settings_decorator_spec.rb 11 additions, 0 deletionsspec/lib/user_settings_decorator_spec.rb
Loading
Please register or sign in to comment