diff options
author | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-25 11:08:20 +0100 |
---|---|---|
committer | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-25 11:08:20 +0100 |
commit | b7ecf433888b1cdd03b8c53b5a27ab057c625ca5 (patch) | |
tree | d54065eda6c846a1e3b1e3619cc7bed72063a2ac /app/controllers/projects_controller.rb | |
parent | 0b324d3463d5fdd887b46d9ad043d2d45e70360b (diff) | |
download | gitlab-ce-b7ecf433888b1cdd03b8c53b5a27ab057c625ca5.tar.gz |
Add cr remarks
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 6 |
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 |