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!
def edit
end
def edit; end
def update
update_attributes = params.require(:theme).permit([
:primary_color, :primary_text,
:danger_color, :danger_text,
:success_color, :success_text,
:warning_color, :warning_text,
:info_color, :info_text,
:dark_color, :dark_text,
:light_color, :light_text,
:raised_background, :raised_accent,
:background_color, :body_text,
:muted_text, :input_color,
:input_text
update_attributes = params.require(:theme).permit(%i[
primary_color primary_text
danger_color danger_text
success_color success_text
warning_color warning_text
info_color info_text
dark_color dark_text
light_color light_text
raised_background raised_accent
background_color body_text
muted_text input_color
input_text
])
if current_user.theme.nil?