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

- old
+ new

@@ -17,16 +17,17 @@ class AnotherMongoidModel include Mongoid::Document include ActiveSearch::Mongoid field :title, type: String - search_by :title, :text, store: [:title] + search_by lambda { [:title, :text, store: [:title]] } # Simulating dynamic options end class LocalizedMongoidModel include Mongoid::Document include ActiveSearch::Mongoid field :title, localize: true - search_by :title, store: [:title] + field :special_type + search_by :title, store: [:title], type: :special_type end \ No newline at end of file