diff options
author | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-25 13:08:20 +0300 |
---|---|---|
committer | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-25 13:08:20 +0300 |
commit | b7ecf433888b1cdd03b8c53b5a27ab057c625ca5 (patch) | |
tree | d54065eda6c846a1e3b1e3619cc7bed72063a2ac /app/controllers/projects_controller.rb | |
parent | 0b324d3463d5fdd887b46d9ad043d2d45e70360b (diff) |
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 |