lib/picky/query/combination.rb in picky-4.0.0pre1 vs lib/picky/query/combination.rb in picky-4.0.0pre2

- old
+ new

@@ -25,10 +25,16 @@ # def category_name @category_name ||= category.name end + # + # + def bundle + category.bundle_for token + end + # Returns the weight of this combination. # # Note: Caching is most of the time useful. # def weight @@ -44,10 +50,10 @@ end # The identifier for this combination. # def identifier - @identifier ||= "#{category.bundle_for(token).identifier}:inverted:#{token.text}" + @identifier ||= "#{bundle.identifier}:inverted:#{token.text}" end # Note: Required for uniq! # # THINK Ok with category or is the bundle needed? \ No newline at end of file