Sha256: cab1ab9c9cd6b01778b8e7afc82ecf3fa48777587b2ffee3e9a439126fb6f40c
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
class Product include Mongoid::Document include Mongoid::Search field :brand field :name field :attrs, :type => Array field :info, :type => Hash references_many :tags referenced_in :category embeds_many :subproducts search_in :brand, :name, :outlet, :attrs, :tags => :name, :category => :name, :subproducts => [:brand, :name], :info => [ :summary, :description ] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_search-0.2.8 | spec/models/product.rb |