lib/picky/query/combinations.rb in picky-4.17.1 vs lib/picky/query/combinations.rb in picky-4.18.0

- old
+ new

@@ -14,10 +14,11 @@ attr_reader :combinations forward :empty?, :inject, + :map, :to => :@combinations def initialize combinations = [] @combinations = combinations end @@ -26,12 +27,9 @@ # # Note: Optimized sum(&:weight) away – ~3% improvement. # def score @combinations.inject(0) { |total, combination| total + combination.weight } - end - def boost_for weights - weights.boost_for @combinations end # Filters the tokens and categories such that categories # that are passed in, are removed. # \ No newline at end of file