module ZipSearch::HasLocations::LocalInstanceMethods

Public Instance Methods

prune_empty_zs_locations() click to toggle source
# File lib/zip_search/has_locations.rb, line 78
def prune_empty_zs_locations
  self.class.zipsearch_associations.each{|zsa|
        Array(self.send(zsa.name)).each {|zsl|
          zsl.delete if zsl.new_record? && zsl.location_blank? } }
end