mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 08:52:14 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user