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
Tatuya Kamada
gitlab-ce
Commits
d59956af
Commit
d59956af
authored
Nov 07, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply `*_params_ce` pattern to ProjectsController
parent
87afcdff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
17 deletions
+35
-17
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+35
-17
No files found.
app/controllers/projects_controller.rb
View file @
d59956af
...
@@ -318,26 +318,44 @@ class ProjectsController < Projects::ApplicationController
...
@@ -318,26 +318,44 @@ class ProjectsController < Projects::ApplicationController
end
end
def
project_params
def
project_params
project_feature_attributes
=
params
.
require
(
:project
)
{
.
permit
(
project_params_ce
)
project_feature_attributes:
end
[
:issues_access_level
,
:builds_access_level
,
:wiki_access_level
,
:merge_requests_access_level
,
:snippets_access_level
,
:repository_access_level
]
}
params
.
require
(
:project
).
permit
(
def
project_params_ce
:name
,
:path
,
:description
,
:issues_tracker
,
:tag_list
,
:runners_token
,
[
:avatar
,
:build_allow_git_fetch
,
:build_coverage_regex
,
:build_timeout_in_minutes
,
:container_registry_enabled
,
:container_registry_enabled
,
:issues_tracker_id
,
:default_branch
,
:default_branch
,
:visibility_level
,
:import_url
,
:last_activity_at
,
:namespace_id
,
:avatar
,
:description
,
:build_allow_git_fetch
,
:build_timeout_in_minutes
,
:build_coverage_regex
,
:import_url
,
:public_builds
,
:only_allow_merge_if_build_succeeds
,
:request_access_enabled
,
:issues_tracker
,
:issues_tracker_id
,
:last_activity_at
,
:lfs_enabled
,
:name
,
:namespace_id
,
:only_allow_merge_if_all_discussions_are_resolved
,
:only_allow_merge_if_all_discussions_are_resolved
,
:lfs_enabled
,
project_feature_attributes
:only_allow_merge_if_build_succeeds
,
)
:path
,
:public_builds
,
:request_access_enabled
,
:runners_token
,
:tag_list
,
:visibility_level
,
project_feature_attributes:
%i[
builds_access_level
issues_access_level
merge_requests_access_level
repository_access_level
snippets_access_level
wiki_access_level
]
]
end
end
def
repo_exists?
def
repo_exists?
...
...
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