summaryrefslogtreecommitdiff
path: root/config/initializers/flipper.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-10 15:54:49 +0200
committerRémy Coutable <remy@rymai.me>2017-07-10 15:56:23 +0200
commita7d65aeaf2d340ffc8cc2db38a03d427d6aecbce (patch)
tree04298d75a686fa80e93f96816596977941c78bfa /config/initializers/flipper.rb
parentcd735170d3bc5e71d46ba1e37249ae713b7842f8 (diff)
downloadgitlab-ce-a7d65aeaf2d340ffc8cc2db38a03d427d6aecbce.tar.gz
Re-add Feature.register_feature_groups which is already documented
This is a follow-up for !12362 where this was documented but the code was removed in the last iteration. Since this can still be useful and this is already supported by the API, I think re-adding the code was the best course of action. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config/initializers/flipper.rb')
-rw-r--r--config/initializers/flipper.rb2
1 files changed, 2 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