diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-07 20:54:39 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-03-07 23:45:32 +0100 |
commit | 901fbda67c2c8781bb8bdb0b1a7d7869a81bc93e (patch) | |
tree | e679cdf0193608f70c7922658c97e754244b3b26 /lib/api/jobs.rb | |
parent | f37240067301548a41a6257792d3926b68328e62 (diff) | |
download | gitlab-ce-901fbda67c2c8781bb8bdb0b1a7d7869a81bc93e.tar.gz |
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.rb | 2 |
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 |