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
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-03-07 22:54:39 +0300
committerToon Claes <toon@gitlab.com>2017-03-08 01:45:32 +0300
commit901fbda67c2c8781bb8bdb0b1a7d7869a81bc93e (patch)
treee679cdf0193608f70c7922658c97e754244b3b26 /lib/api/jobs.rb
parentf37240067301548a41a6257792d3926b68328e62 (diff)
Make it possible to query scope as scope[]=
Since issues also accepts the query parameter iids[]=, also make it possible query scope like that.
Diffstat (limited to 'lib/api/jobs.rb')
-rw-r--r--lib/api/jobs.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/jobs.rb b/lib/api/jobs.rb
index af8f4b1e759..3a1a393c940 100644
--- a/lib/api/jobs.rb
+++ b/lib/api/jobs.rb
@@ -18,6 +18,8 @@ module API
[scope]
when Hashie::Mash
scope.values
+ when Hashie::Array
+ scope
else
['unknown']
end