Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git i/vendor/plugins/addressable/lib/addressable.rb w/vendor/plugins/addressable/lib/addressable.rb
index 59e402c..054a9b5 100644
--- i/vendor/plugins/addressable/lib/addressable.rb
+++ w/vendor/plugins/addressable/lib/addressable.rb
@@ -116,7 +116,7 @@ module Addressable
if has_latlng_fields?
build_geocode unless geocode
- if address.blank? and latitude.blank? and longitude.blank?
+ if address.blank? and latitude.to_f == 0.0 and longitude.to_f == 0.0
geocode.destroy
elsif latitude.present? and longitude.present?
geocode.update_attributes(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.