]> cat aescling's git repositories - mastodon.git/commit
Enable updating additional account information from user preferences via rest api...
authorLevi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com>
Sun, 8 Apr 2018 11:43:10 +0000 (13:43 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 8 Apr 2018 11:43:10 +0000 (13:43 +0200)
commitcd0eaa349ca5d7e53e2ed246e70e99fc61c98370
tree1d1f099ad6bcb3be4bd6b11343e4d915b623a286
parent1364e9e4ae1fb12a1c970795f1d0afd651c7cfe2
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
app/controllers/api/v1/accounts/credentials_controller.rb
app/lib/user_settings_decorator.rb
spec/controllers/api/v1/accounts/credentials_controller_spec.rb
spec/lib/user_settings_decorator_spec.rb