Created
July 19, 2010 13:37
-
-
Save LBRapid/481409 to your computer and use it in GitHub Desktop.
Setup recaptcha keys in an initializer to easily make global changes to settings. Ex: config/initializers/recaptcha.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.production? | |
ENV['RECAPTCHA_PUBLIC_KEY'] = 'your_production_key' | |
ENV['RECAPTCHA_PRIVATE_KEY'] = 'your_production_key' | |
else | |
ENV['RECAPTCHA_PUBLIC_KEY'] = 'your_global_key' | |
ENV['RECAPTCHA_PRIVATE_KEY'] = 'your_global_key' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment