Skip to content
Snippets Groups Projects
Commit 41882fca authored by Aaron Parecki's avatar Aaron Parecki
Browse files

fix merging esri config when generating a token

parent 1309ea63
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ module Geocoder::Lookup ...@@ -58,7 +58,7 @@ module Geocoder::Lookup
def fetch_and_save_token! def fetch_and_save_token!
token_instance = Geocoder::EsriToken.generate_token(*configuration.api_key) token_instance = Geocoder::EsriToken.generate_token(*configuration.api_key)
Geocoder.configure(:esri => {:token => token_instance}) Geocoder.configure(:esri => Geocoder.config[:esri].merge({:token => token_instance}))
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment