lib/picky/query/combinations.rb in picky-4.0.0pre1 vs lib/picky/query/combinations.rb in picky-4.0.0pre2
- old
+ new
@@ -23,15 +23,10 @@
def hash
@combinations.hash
end
- # Uses user specific weights to calculate a score for the combinations.
- #
- def calculate_score weights
- total_score + weighted_score(weights)
- end
- def total_score
+ def score
@combinations.sum &:weight
end
def weighted_score weights
weights.score_for @combinations
end
\ No newline at end of file