diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 19:31:21 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 19:31:21 +0800 |
commit | efebdba21db9e11b876ecb54db48358e13b08ad3 (patch) | |
tree | 44c63974c56c24af642c5b6b358dbb137b307595 /app/controllers/projects/variables_controller.rb | |
parent | 9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca (diff) | |
download | gitlab-ce-efebdba21db9e11b876ecb54db48358e13b08ad3.tar.gz |
Frontend implementation, tests, and changelog
Diffstat (limited to 'app/controllers/projects/variables_controller.rb')
-rw-r--r-- | app/controllers/projects/variables_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/variables_controller.rb b/app/controllers/projects/variables_controller.rb index a4d1b1ee69b..0953eecaeb5 100644 --- a/app/controllers/projects/variables_controller.rb +++ b/app/controllers/projects/variables_controller.rb @@ -42,6 +42,7 @@ class Projects::VariablesController < Projects::ApplicationController private def project_params - params.require(:variable).permit([:id, :key, :value, :_destroy]) + params.require(:variable) + .permit([:id, :key, :value, :protected, :_destroy]) end end |