lib/picky/internals/indexed/categories.rb in picky-2.2.0 vs lib/picky/internals/indexed/categories.rb in picky-2.2.1

- old
+ new

@@ -103,11 +103,9 @@ # Note: Returns [] if no categories matched (will produce no result). # Returns nil if this token needs to be removed from the query. # (Also none of the categories matched, but the ignore unassigned # tokens option is true) # - # TODO Could use Combinations class here and remove the inject. - # def possible_for token, preselected_categories = nil possible = (preselected_categories || possible_categories(token)).inject([]) do |combinations, category| combination = category.combination_for token combination ? combinations << combination : combinations end \ No newline at end of file