spec/models/mongoid.rb in activesearch-0.0.10 vs spec/models/mongoid.rb in activesearch-0.0.11
- old
+ new
@@ -20,10 +20,14 @@
field :title, type: String
search_by :options_for_search
def options_for_search
- [:title, :text, store: [:title]]
+ [:title, :text, store: [:title, :virtual]]
+ end
+
+ def virtual
+ "virtual"
end
end
class LocalizedMongoidModel
\ No newline at end of file