retrospring/config/initializers/hcaptcha.rb
2020-05-27 22:33:54 +01:00

6 lines
204 B
Ruby

return unless APP_CONFIG.dig(:hcaptcha, :enabled)
Hcaptcha.configure do |config|
config.site_key = APP_CONFIG.dig(:hcaptcha, :site_key)
config.secret_key = APP_CONFIG.dig(:hcaptcha, :secret_key)
end