diff options
author | DJ Mountney <david@twkie.net> | 2018-04-04 12:49:08 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2018-04-04 12:49:08 -0700 |
commit | 39bb3720381af64039673cf21705fcf95cf78314 (patch) | |
tree | c32aa05ee2eaa2e0b93ec811a6ad8f3aa71a207e /lib/api/features.rb | |
parent | f7f92836400ec86c74d1140223c009d3d328aea9 (diff) | |
parent | 166b4575a6353668c894fea0ba234d0b371dee03 (diff) | |
download | gitlab-ce-39bb3720381af64039673cf21705fcf95cf78314.tar.gz |
Merge remote-tracking branch 'origin/master' into dev-master
Diffstat (limited to 'lib/api/features.rb')
-rw-r--r-- | lib/api/features.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb index 9385c6ca174..11d848584d9 100644 --- a/lib/api/features.rb +++ b/lib/api/features.rb @@ -65,6 +65,13 @@ module API present feature, with: Entities::Feature, current_user: current_user end + + desc 'Remove the gate value for the given feature' + delete ':name' do + Feature.get(params[:name]).remove + + status 204 + end end end end |