diff --git a/config/initializers/recaptcha.rb b/config/initializers/recaptcha.rb index 6d610a9010..f3e388ec07 100644 --- a/config/initializers/recaptcha.rb +++ b/config/initializers/recaptcha.rb @@ -1,8 +1,8 @@ # config/initializers/recaptcha.rb -if Rails.env == "production" +if Rails.env.production? Recaptcha.configure do |config| - config.site_key = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' - config.secret_key = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe' + config.site_key = ENV["RECAPTCHA_SITE_KEY"] || '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' + config.secret_key = ENV["RECAPTCHA_SECRET_KEY"] || '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe' # Uncomment the following line if you are using a proxy server: # config.proxy = 'http://myproxy.com.au:8080' end