diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-06-27 13:48:04 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-06-28 10:10:47 +1000 |
commit | 83b1fd120a67b0e1f10e2870a8c2923f5c1a6b42 (patch) | |
tree | 8ba7a727fadb073f7722af7002a4f677b4e98a08 /app/helpers | |
parent | 36451a753ac442250c1ed5a6427383817434d1ec (diff) | |
download | gitlab-ce-83b1fd120a67b0e1f10e2870a8c2923f5c1a6b42.tar.gz |
Add new OnboardingExperimentHelper modules
OnboardingExperimentHelpers take care of
determining if the current_user should or should
not see the new onboarding feature.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/onboarding_experiment_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/onboarding_experiment_helper.rb b/app/helpers/onboarding_experiment_helper.rb new file mode 100644 index 00000000000..ad49d333d7a --- /dev/null +++ b/app/helpers/onboarding_experiment_helper.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module OnboardingExperimentHelper + def allow_access_to_onboarding? + ::Gitlab.com? && Feature.enabled?(:user_onboarding) + end +end |