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/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-06-27 12:05:20 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-06-27 22:13:06 +0300
commitf96e0c8434699b1644a4ce60e1b2d4b4c095ad4f (patch)
tree235554d02f63a94f7300cad21ee5e1ca2b55cdd0 /lib
parent600ef885357700c101a1c389f07f8d85c44a262d (diff)
Merge branch '34282-fix-api-using-include_missing-false' into 'master'
Fix optional arugments for POST :id/variables Closes #34282 See merge request !12474
Diffstat (limited to 'lib')
-rw-r--r--lib/api/variables.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb
index 381c4ef50b0..10374995497 100644
--- a/lib/api/variables.rb
+++ b/lib/api/variables.rb
@@ -45,7 +45,7 @@ module API
optional :protected, type: String, desc: 'Whether the variable is protected'
end
post ':id/variables' do
- variable = user_project.variables.create(declared(params, include_parent_namespaces: false).to_h)
+ variable = user_project.variables.create(declared_params(include_missing: false))
if variable.valid?
present variable, with: Entities::Variable