diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-10 15:06:38 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-07-10 15:06:38 +0000 |
commit | 03b0fe6df908db9d9d71f9f1a8e1e492d2719524 (patch) | |
tree | 04298d75a686fa80e93f96816596977941c78bfa | |
parent | cd735170d3bc5e71d46ba1e37249ae713b7842f8 (diff) | |
parent | a7d65aeaf2d340ffc8cc2db38a03d427d6aecbce (diff) | |
download | gitlab-ce-03b0fe6df908db9d9d71f9f1a8e1e492d2719524.tar.gz |
Merge branch '34891-follow-up-feature-group' into 'master'
Re-add Feature.register_feature_groups which is already documented
Closes #34891
See merge request !12751
-rw-r--r-- | config/initializers/flipper.rb | 2 | ||||
-rw-r--r-- | lib/feature.rb | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index 8ec9613a4b7..bfab8c77a4b 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -3,4 +3,6 @@ require 'flipper/middleware/memoizer' unless Rails.env.test? Rails.application.config.middleware.use Flipper::Middleware::Memoizer, lambda { Feature.flipper } + + Feature.register_feature_groups end diff --git a/lib/feature.rb b/lib/feature.rb index 363f66ba60e..4bd29aed687 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -57,5 +57,11 @@ class Feature Flipper.new(adapter) end end + + # This method is called from config/initializers/flipper.rb and can be used + # to register Flipper groups. + # See https://docs.gitlab.com/ee/development/feature_flags.html#feature-groups + def register_feature_groups + end end end |