diff options
author | David Yip <yipdw@member.fsf.org> | 2018-01-09 20:09:00 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-10 12:09:42 -0600 |
commit | 6fcb870d96e53a5d032c0639697b1387248339d6 (patch) | |
tree | 6730ebaeef52c844cc6d65f1b1d8caaac418569b /app/controllers/settings/deletes_controller.rb | |
parent | 3ce1385b254c75ad026a84cb19d2ed49c10aa665 (diff) |
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.
Diffstat (limited to 'app/controllers/settings/deletes_controller.rb')
0 files changed, 0 insertions, 0 deletions