mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-23 17:47:49 -05:00
17 lines
237 B
Ruby
17 lines
237 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|