From fa27f07e9a9d4cd4021698627a505d3cf3b4a68b Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Tue, 8 Oct 2024 18:58:27 +1030 Subject: [PATCH] hcatpcha settings --- config/environments/development.rb | 2 +- config/environments/production.rb | 3 +++ config/environments/test.rb | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 31b16e5..74d7105 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -76,7 +76,7 @@ Rails.application.configure do # Raise error when a before_action's only/except options reference missing actions. config.action_controller.raise_on_missing_callback_actions = true - # Turn of captcha stuff for localhost + # Turn off captcha stuff for localhost config.hcaptcha_enabled = false # Apply autocorrection by RuboCop to files generated by `bin/rails generate`. diff --git a/config/environments/production.rb b/config/environments/production.rb index 5620a09..d931269 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -97,6 +97,9 @@ Rails.application.configure do # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true + + # Turn off captcha stuff for localhost + config.hcaptcha_enabled = true # Don't log any deprecations. config.active_support.report_deprecations = false diff --git a/config/environments/test.rb b/config/environments/test.rb index 0c616a1..59c6723 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -55,7 +55,10 @@ Rails.application.configure do # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] - + + # Turn off captcha stuff for localhost + config.hcaptcha_enabled = false + # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true -- 2.39.5