Files
growstuff/lib/geocodable.rb
2020-01-10 16:50:52 +13:00

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