Commit 87f299b5 authored by Gilbert Roulot's avatar Gilbert Roulot Committed by Victor Zagorodny

Make parameters list more easily changeable

parent 55cb4bc9
......@@ -33,12 +33,10 @@ class Profiles::PreferencesController < Profiles::ApplicationController
end
def preferences_params
params.require(:user).permit(
:color_scheme_id,
:layout,
:dashboard,
:project_view,
:theme_id
)
params.require(:user).permit(preferences_param_names)
end
def preferences_param_names
[:color_scheme_id, :layout, :dashboard, :project_view, :theme_id]
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment