lib/picky/query/allocation.rb in picky-3.6.14 vs lib/picky/query/allocation.rb in picky-3.6.15

- old
+ new

@@ -68,10 +68,10 @@ end # Transform the allocation into result form. # def to_result - [self.result_identifier, self.score, self.count, @combinations.to_result, self.ids] if self.count > 0 + [self.result_identifier, self.score, self.count, @combinations.to_result, self.ids] if self.count && self.count > 0 end # Json representation of this allocation. # # Note: Delegates to to_result. \ No newline at end of file