lib/picky/sources/couch.rb in picky-2.1.2 vs lib/picky/sources/couch.rb in picky-2.2.0
- old
+ new
@@ -49,10 +49,10 @@
# Harvests the data to index.
#
# See important note, above.
#
@@id_key = '_id'
- def harvest type, category
+ def harvest category
category_name = category.from.to_s
get_data do |doc|
yield doc[@@id_key], doc[category_name] || next
end
end