Sha256: ef5694559c464faac2ec5ee27a5e67c6cf863ca238d6fe343f6f400c3edbb35e
Contents?: true
Size: 450 Bytes
Versions: 15
Compression:
Stored size: 450 Bytes
Contents
class FilteredArtwork include Mongoid::Document include Mongoid::FullTextSearch field :title fulltext_search_in :title, :index_name => 'mongoid_fulltext.artworks_and_artists', :filters => { :is_foobar => lambda { |x| x.title == 'foobar' }, :is_artwork => lambda { |x| true }, :is_artist => lambda { |x| false } } end
Version data entries
15 entries across 15 versions & 1 rubygems