diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-27 18:58:56 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-27 18:59:51 +0200 |
commit | 5fa9d6a17dac86e9976946ded7857e1392403136 (patch) | |
tree | 842b40fb6948b5ba444d9b526554393cede3ba2a /lib | |
parent | b4d325c80c63ee9ee2676a57a42fac472b5b20d5 (diff) | |
download | gitlab-ce-5fa9d6a17dac86e9976946ded7857e1392403136.tar.gz |
Rename FLippable to FeatureGate and make `flipper_group` and `user` mutually exclusive
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/features.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb index 4e10e36fce9..e426bc050eb 100644 --- a/lib/api/features.rb +++ b/lib/api/features.rb @@ -42,6 +42,7 @@ module API requires :value, type: String, desc: '`true` or `false` to enable/disable, an integer for percentage of time' optional :flipper_group, type: String, desc: 'A Flipper group name' optional :user, type: String, desc: 'A GitLab username' + mutually_exclusive :flipper_group, :user end post ':name' do feature = Feature.get(params[:name]) |