diff options
author | David Yip <yipdw@member.fsf.org> | 2018-01-09 20:12:28 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-10 12:09:42 -0600 |
commit | 514db316f798f3e9b65d1591ff88f7c82289ae38 (patch) | |
tree | 462212840530321cbe3347706e7b1fe9bcef7d9a /app/controllers | |
parent | 6fcb870d96e53a5d032c0639697b1387248339d6 (diff) |
The flavour parameter is unused, so omit it (#317)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/settings/flavours_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/settings/flavours_controller.rb b/app/controllers/settings/flavours_controller.rb index a4bdcdf3e..a2d2c9dee 100644 --- a/app/controllers/settings/flavours_controller.rb +++ b/app/controllers/settings/flavours_controller.rb @@ -16,7 +16,7 @@ class Settings::FlavoursController < Settings::BaseController end def update - user_settings.update(user_settings_params(params[:flavour])) + user_settings.update(user_settings_params) redirect_to action: 'show', flavour: params[:flavour] end @@ -26,7 +26,7 @@ class Settings::FlavoursController < Settings::BaseController UserSettingsDecorator.new(current_user) end - def user_settings_params(flavour) + def user_settings_params { setting_flavour: params.require(:flavour), setting_skin: params.dig(:user, :setting_skin) }.with_indifferent_access |