Module: ZipSearch::HasLocations::LocalInstanceMethods
- Defined in:
- lib/zip_search/has_locations.rb
Instance Method Summary collapse
Instance Method Details
#prune_empty_zs_locations ⇒ Object
78 79 80 81 82 |
# 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 |