Module: Sunspot::Rails::Mongoid
- Defined in:
- lib/sunspot/rails/adapters.rb
Overview
This module provides Sunspot Adapter implementations for Mongoid models.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/sunspot/rails/adapters.rb', line 8 def self.included(base) base.class_eval do extend Sunspot::Rails::Searchable::ActsAsMethods Sunspot::Adapters::DataAccessor.register(Sunspot::Rails::Adapters::MongoidDataAccessor, base) Sunspot::Adapters::InstanceAdapter.register(Sunspot::Rails::Adapters::MongoidInstanceAdapter, base) end end |