spec/models/mongoid.rb in activesearch-0.3.0 vs spec/models/mongoid.rb in activesearch-0.3.1
- old
+ new
@@ -25,10 +25,10 @@
def options_for_search
[:title, store: [:title, :virtual, :scope_id, :color]]
end
def virtual
- "virtual"
+ Struct.new(:to_indexable).new('virtual')
end
end
class LocalizedMongoidModel
include Mongoid::Document
\ No newline at end of file