Remove apparently-unused Geocodable.geocode method

We have unit tests for geocoding, but it's not being covered, so I
assume it's being shadowed by a method installed directly from Geocoder.
This commit is contained in:
Miles Gould
2016-12-19 20:14:05 +00:00
parent abb9acd04a
commit b8385afb2f

View File

@@ -5,13 +5,6 @@ module Geocodable
private
def geocode
unless self.location.blank?
self.latitude, self.longitude =
Geocoder.coordinates(location, params: { limit: 1 })
end
end
def empty_unwanted_geocodes
if self.location.blank?
self.latitude = nil