Module: Sunspot::Mongoid

Defined in:
lib/sunspot/mongoid.rb

Defined Under Namespace

Classes: DataAccessor, InstanceAdapter

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


27
28
29
30
31
32
33
# File 'lib/sunspot/mongoid.rb', line 27

def self.included(base)
  base.class_eval do
    extend Sunspot::Rails::Searchable::ActsAsMethods
    Sunspot::Adapters::DataAccessor.register(DataAccessor, base)
    Sunspot::Adapters::InstanceAdapter.register(InstanceAdapter, base)
  end
end