Sha256: 7a8896ce089d0ca8007e5947a47ab249d0c4bbbd33e34dbf964963812d3b040b
Contents?: true
Size: 258 Bytes
Versions: 2
Compression:
Stored size: 258 Bytes
Contents
class Tag include Mongoid::Document include Mongoid::Search field :name belongs_to :product def title self.name end search_in :title, :product => [:name, { :info => [ :summary, :description ], :category => [:name, :description]}] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_search-0.3.2 | spec/models/tag.rb |
mongoid_search-0.3.1 | spec/models/tag.rb |