Skip to content
Snippets Groups Projects
Commit 83417eb7 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #1054 from aaronpk/fix-esri-config-merge

fix merging esri config when generating a token
parents 1309ea63 41882fca
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ module Geocoder::Lookup
def fetch_and_save_token!
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
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