diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-17 12:17:40 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-17 16:33:36 +0100 |
commit | 53915c5c54c06182717b457375ae771ee01558fd (patch) | |
tree | e270fe3c239f6fd91871b5157665abfe2aa8867b /app/controllers/groups/variables_controller.rb | |
parent | 763c82f0b304362be71ca82e551381609db19bf8 (diff) | |
download | gitlab-ce-53915c5c54c06182717b457375ae771ee01558fd.tar.gz |
Alias secret_key and secret_value to key and value
Diffstat (limited to 'app/controllers/groups/variables_controller.rb')
-rw-r--r-- | app/controllers/groups/variables_controller.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/groups/variables_controller.rb b/app/controllers/groups/variables_controller.rb index 2794d5fe6ec..91e394c8ce8 100644 --- a/app/controllers/groups/variables_controller.rb +++ b/app/controllers/groups/variables_controller.rb @@ -35,12 +35,7 @@ module Groups end def group_variables_params - filtered_params = params.permit(variables_attributes: [*variable_params_attributes]) - filtered_params["variables_attributes"].each do |variable| - variable["key"] = variable.delete("secret_key") - variable["value"] = variable.delete("secret_value") - end - filtered_params + params.permit(variables_attributes: [*variable_params_attributes]) end def variable_params_attributes |