mastodon/app/controllers/settings
David Yip 6fcb870d96
Allow for user object to be empty. Fixes #317.
If a flavour has only one skin, the skin selector will be omitted.  This
omits the user[setting_skin] field, and because that's the only
user[...] field on the page, the entire user object will not be present
in the request handler's params object.

This commit accounts for that scenario by avoiding params.require(:user)
and instead picking out what we need from the params hash.
2018-01-10 12:09:42 -06:00
..
exports Remove exports/base controller in favor of shared concern (#3444) 2017-05-30 19:06:01 +02:00
two_factor_authentication Set packs on 2FA-related pages. Fixes #271. 2017-12-20 03:15:54 -06:00
applications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
base_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
deletes_controller.rb Prepend check_enabled_deletion to Settings::DeletesController (#229) 2017-12-06 16:19:43 -06:00
exports_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
flavours_controller.rb Allow for user object to be empty. Fixes #317. 2018-01-10 12:09:42 -06:00
follower_domains_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
imports_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
keyword_mutes_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
migrations_controller.rb Fix #6022 - Prevent nested migrated accounts, or migrations to self (#6026) 2017-12-14 21:35:30 +01:00
notifications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
preferences_controller.rb Moved flavour UI into own prefs tab 2017-12-10 20:32:27 -08:00
profiles_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
sessions_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
two_factor_authentications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00