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
path: root/app
diff options
context:
space:
mode:
authorMałgorzata Ksionek <meksionek@gmail.com>2019-03-25 13:08:20 +0300
committerMałgorzata Ksionek <meksionek@gmail.com>2019-03-25 13:16:42 +0300
commit3a3748929b37a6b86e39026368c6883e8f5ef451 (patch)
treeca66182492d1baadd9e1be33e1d6bb0e1138cf84 /app
parent1d5705a84ced01bfc79b48a38ac16e769d9cc7b9 (diff)
Add cr remarks
Diffstat (limited to 'app')
-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 b419d669544..f76e6663995 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -328,9 +328,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
@@ -375,7 +375,7 @@ class ProjectsController < Projects::ApplicationController
end
def project_params_create_attributes
- project_params_attributes << :namespace_id
+ [:namespace_id]
end
def custom_import_params