Loading request...
Allow setting the `for_storage` option for the Esri geocoder only when coding is performed within ActiveRecord models (callbacks), enabling different settings for ephemeral search queries and persisted geocoding results.
It would be useful to be able to only set the for_storage option used by the Esri geocoder to true if the coding is performed in the context of the ActiveRecord models (i.e. the callbacks). Currently the only way to switch back and forth (e.g. for geocoding ephemeral search queries and persisted geocoding results) is to set Geocoder.config[:esri][:for_storage] for every call. Or am I missing something?