mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-31 20:51:02 -05:00
14 lines
205 B
Ruby
14 lines
205 B
Ruby
module Geocodable
|
|
def self.included(base)
|
|
base.extend(self)
|
|
end
|
|
|
|
private
|
|
|
|
def empty_unwanted_geocodes
|
|
return if location.present?
|
|
self.latitude = nil
|
|
self.longitude = nil
|
|
end
|
|
end
|