Module: Sunspot::Mongoid

Defined in:
lib/sunspot/mongoid.rb,
lib/sunspot/mongoid/railtie.rb

Defined Under Namespace

Modules: ActsAsMethods, ClassMethods Classes: DataAccessor, InstanceAdapter, Railtie

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/sunspot/mongoid.rb', line 19

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