lib/picky/query/boosts.rb in picky-4.17.1 vs lib/picky/query/boosts.rb in picky-4.18.0
- old
+ new
@@ -57,9 +57,11 @@
# actual combinations, just the category names.
#
# Note: Cache this if more complicated weighings become necessary.
# Note: Maybe make combinations comparable to Symbols?
#
+ # TODO Push into categories? Store boosts in categories?
+ #
def boost_for combinations
boost_for_categories combinations.map { |combination| combination.category_name }
end
# A Weights instance is == to another if
\ No newline at end of file