examples/example.rb in sunspot_mongoid-0.1.2 vs examples/example.rb in sunspot_mongoid-0.2.0
- old
+ new
@@ -9,10 +9,10 @@
class Post
include Mongoid::Document
field :title
include Sunspot::Mongoid
- sunspot_setup do
+ searchable do
text :title
end
end
# remove old indexes