lib/redis_object/indices.rb in redis_object-1.3.7 vs lib/redis_object/indices.rb in redis_object-1.3.8

- old
+ new

@@ -44,10 +44,10 @@ @intercepted_sets_for_indices = true end def indexed(idx,num=-1,reverse=false) kys = store.send(reverse ? :zrevrange : :zrange, index_key(idx), 0, num-1) - out = Enumerator.new do |yielder| + out = ListEnumerator.new(kys) do |yielder| kys.each do |member| if a = self.find_by_key(member) yielder << a end end \ No newline at end of file