The flavour parameter is unused, so omit it (#317)
parent
6fcb870d96
commit
514db316f7
|
@ -16,7 +16,7 @@ class Settings::FlavoursController < Settings::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
user_settings.update(user_settings_params(params[:flavour]))
|
user_settings.update(user_settings_params)
|
||||||
redirect_to action: 'show', flavour: params[:flavour]
|
redirect_to action: 'show', flavour: params[:flavour]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class Settings::FlavoursController < Settings::BaseController
|
||||||
UserSettingsDecorator.new(current_user)
|
UserSettingsDecorator.new(current_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_settings_params(flavour)
|
def user_settings_params
|
||||||
{ setting_flavour: params.require(:flavour),
|
{ setting_flavour: params.require(:flavour),
|
||||||
setting_skin: params.dig(:user, :setting_skin)
|
setting_skin: params.dig(:user, :setting_skin)
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
|
|
Loading…
Reference in New Issue