spec/models/mongoid.rb in activesearch-0.0.4 vs spec/models/mongoid.rb in activesearch-0.0.5

- old
+ new

@@ -8,10 +8,11 @@ include ActiveSearch::Mongoid field :title, type: String field :text, type: String field :junk, type: String - search_by :title, :text, store: [:title, :junk] + field :special, type: Boolean, default: false + search_by :title, :text, store: [:title, :junk], unless: :special end class AnotherMongoidModel include Mongoid::Document include ActiveSearch::Mongoid \ No newline at end of file