lib/picky/sources/wrappers/location.rb in picky-0.11.2 vs lib/picky/sources/wrappers/location.rb in picky-0.12.0

- old
+ new

@@ -36,21 +36,21 @@ def reset @min = 1.0/0 end - # Yield the data (id, text for id) for the given type and field. + # Yield the data (id, text for id) for the given type and category. # - def harvest type, field + def harvest type, category reset # Cache. TODO Make option? # locations = [] # Gather min/max. # - backend.harvest type, field do |indexed_id, location| + backend.harvest type, category do |indexed_id, location| location = location.to_f @min = location if location < @min locations << [indexed_id, location] end \ No newline at end of file