Hello, I am trying to invoke a variable site_key said variable is located in an initializer:
config/initializers/recaptcha.rb
Recaptcha.configure do |config|
config.site_key = 'ClaveDelSitio'
config.secret_key = 'ClavePrivada'
end
How can I access the value of "config.site_key" from another part of the code?
Seeing as how the configuration is stored in the gem and the
site_key
is just aattr_accessor
, so you should be able to access it with: