diff --git a/config/initializers/geocoder.rb b/config/initializers/geocoder.rb index 8abae13..c05670e 100644 --- a/config/initializers/geocoder.rb +++ b/config/initializers/geocoder.rb @@ -7,7 +7,7 @@ use_https: true, # use HTTPS for lookup requests? (if supported) http_proxy: nil, # HTTP proxy server (user:pass@host:port) https_proxy: nil, # HTTPS proxy server (user:pass@host:port) - api_key: nil, # API key for geocoding service + api_key: ENV['GEOCODER_API_KEY'], # API key for geocoding service cache: nil, # cache object (must respond to #[], #[]=, and #del) cache_prefix: 'geocoder:', # prefix (string) to use for all cache keys @@ -19,4 +19,4 @@ # Calculation options units: :km, # :km for kilometers or :mi for miles distances: :linear # :spherical or :linear -) \ No newline at end of file +)