summaryrefslogtreecommitdiff
path: root/app/helpers/recaptcha_experiment_helper.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-06-25 22:32:54 +0000
committerThong Kuah <tkuah@gitlab.com>2019-06-25 22:32:54 +0000
commit15e9aced75319e6e2b48f4b19fcba1346103f772 (patch)
tree6ff0d9fa36aa2e67e565147fd5105f90fe5a6a11 /app/helpers/recaptcha_experiment_helper.rb
parent87b468c254e3e1e3b6b1d86e003f1f90a39935a2 (diff)
downloadgitlab-ce-15e9aced75319e6e2b48f4b19fcba1346103f772.tar.gz
New RecaptchaExperimentHelper modules
RecaptchaExperimentHelper contains helper methods to assist in the controller and view layers.
Diffstat (limited to 'app/helpers/recaptcha_experiment_helper.rb')
-rw-r--r--app/helpers/recaptcha_experiment_helper.rb7
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