diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-06-25 22:32:54 +0000 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-06-25 22:32:54 +0000 |
commit | 15e9aced75319e6e2b48f4b19fcba1346103f772 (patch) | |
tree | 6ff0d9fa36aa2e67e565147fd5105f90fe5a6a11 /app/helpers | |
parent | 87b468c254e3e1e3b6b1d86e003f1f90a39935a2 (diff) | |
download | gitlab-ce-15e9aced75319e6e2b48f4b19fcba1346103f772.tar.gz |
New RecaptchaExperimentHelper modules
RecaptchaExperimentHelper contains helper methods
to assist in the controller and view layers.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/recaptcha_experiment_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/recaptcha_experiment_helper.rb b/app/helpers/recaptcha_experiment_helper.rb new file mode 100644 index 00000000000..d2eb9ac54f6 --- /dev/null +++ b/app/helpers/recaptcha_experiment_helper.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module RecaptchaExperimentHelper + def show_recaptcha_sign_up? + !!Gitlab::Recaptcha.enabled? + end +end |