Execute block even if no geocoding results.
This has always been the intended behavior (as shown by the README's sample code which begins `if results.first`) but it wasn't implemented properly. Thanks to github.com/nhippenmeyer for pointing it out.
Showing
- lib/geocoder/stores/active_record.rb 6 additions, 5 deletionslib/geocoder/stores/active_record.rb
- lib/geocoder/stores/base.rb 9 additions, 10 deletionslib/geocoder/stores/base.rb
- lib/geocoder/stores/mongo_base.rb 5 additions, 4 deletionslib/geocoder/stores/mongo_base.rb
- test/geocoder_test.rb 6 additions, 0 deletionstest/geocoder_test.rb
- test/test_helper.rb 2 additions, 0 deletionstest/test_helper.rb
Loading
Please register or sign in to comment