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 ...@@ -33,12 +33,10 @@ class Profiles::PreferencesController < Profiles::ApplicationController
end end
def preferences_params def preferences_params
params.require(:user).permit( params.require(:user).permit(preferences_param_names)
:color_scheme_id, end
:layout,
:dashboard, def preferences_param_names
:project_view, [:color_scheme_id, :layout, :dashboard, :project_view, :theme_id]
:theme_id
)
end end
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