spec/models/variant.rb in mongoid_search-0.3.5 vs spec/models/variant.rb in mongoid_search-0.3.6
- old
+ new
@@ -1,5 +1,7 @@
autoload :Product, 'models/product.rb'
class Variant < Product
field :color
+ field :size
search_in :color
+ search_in :size, index: :_unit_keywords
end