Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index e347f542605..1183dd136d0 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -327,9 +327,9 @@ class ProjectsController < Projects::ApplicationController
end
# rubocop: enable CodeReuse/ActiveRecord
- def project_params(attributes: project_params_attributes)
+ def project_params(attributes: [])
params.require(:project)
- .permit(attributes)
+ .permit(project_params_attributes + attributes)
end
def project_params_attributes
@@ -374,7 +374,7 @@ class ProjectsController < Projects::ApplicationController
end
def project_params_create_attributes
- project_params_attributes << :namespace_id
+ [:namespace_id]
end
def custom_import_params