alexreisner / geocoder

Complete Ruby geocoding solution.
http://www.rubygeocoder.com
MIT License
6.34k stars 1.19k forks source link

geocoded_by address method not called on updating any field #1449

Open jaswinder97 opened 4 years ago

jaswinder97 commented 4 years ago

Expected behavior

It should update lat lng on updating any field change in geocoded_by address but only called on create callback of activerecord

Actual behavior

It doesn't geocode on activerecord update callbacks

Steps to reproduce

Environment info

wiemthebest commented 3 years ago

I reproduce the bug, do you have found a solution please ?

alexreisner commented 3 years ago

This is difficult to debug without more information (I can't reproduce it). If the before_save callback is only being executed on object create, that's a Rails or application error, not a Geocoder bug.