Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
87f299b5
Commit
87f299b5
authored
Nov 02, 2018
by
Gilbert Roulot
Committed by
Victor Zagorodny
Feb 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make parameters list more easily changeable
parent
55cb4bc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
app/controllers/profiles/preferences_controller.rb
app/controllers/profiles/preferences_controller.rb
+5
-7
No files found.
app/controllers/profiles/preferences_controller.rb
View file @
87f299b5
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment