summaryrefslogtreecommitdiff
path: root/lib/feature
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-17 12:09:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-17 12:09:57 +0000
commit4e8387dc14ea8fb054c413ea237cf9e2e04cee83 (patch)
tree25114e855f541990de08c1c73a298f6537859896 /lib/feature
parent173bd0618fb24fce59586a533290923ff8bbf99a (diff)
downloadgitlab-ce-4e8387dc14ea8fb054c413ea237cf9e2e04cee83.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/feature')
-rw-r--r--lib/feature/shared.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/feature/shared.rb b/lib/feature/shared.rb
index 17dfe26bd82..a3f02156d94 100644
--- a/lib/feature/shared.rb
+++ b/lib/feature/shared.rb
@@ -57,6 +57,8 @@ class Feature
default_enabled: false,
example: <<-EOS
experiment(:my_experiment, project: project, actor: current_user) { ...variant code... }
+ # or
+ Gitlab::Experimentation.in_experiment_group?(:my_experiment, subject: current_user)
EOS
}
}.freeze