Appease the dog overlords

This commit is contained in:
Andreas Nedbal 2022-06-26 03:07:59 +02:00 committed by Karina Kwiatek
parent 8f8ebaf77b
commit 417eee2ddc
2 changed files with 37 additions and 38 deletions

View File

@ -3,22 +3,21 @@ class Settings::ThemeController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
def edit def edit; end
end
def update def update
update_attributes = params.require(:theme).permit([ update_attributes = params.require(:theme).permit(%i[
:primary_color, :primary_text, primary_color primary_text
:danger_color, :danger_text, danger_color danger_text
:success_color, :success_text, success_color success_text
:warning_color, :warning_text, warning_color warning_text
:info_color, :info_text, info_color info_text
:dark_color, :dark_text, dark_color dark_text
:light_color, :light_text, light_color light_text
:raised_background, :raised_accent, raised_background raised_accent
:background_color, :body_text, background_color body_text
:muted_text, :input_color, muted_text input_color
:input_text input_text
]) ])
if current_user.theme.nil? if current_user.theme.nil?