lib/sunspot/mongoid.rb in sunspot_mongoid-0.1.2 vs lib/sunspot/mongoid.rb in sunspot_mongoid-0.2.0

- old
+ new

@@ -13,10 +13,10 @@ Sunspot::Adapters::InstanceAdapter.register(InstanceAdapter, base) extend Sunspot::Rails::Searchable::ClassMethods include Sunspot::Rails::Searchable::InstanceMethods - def self.sunspot_setup(options = {}, &block) + def self.searchable(options = {}, &block) Sunspot.setup(self, &block) class_inheritable_hash :sunspot_options unless options[:auto_index] == false