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
19 20 21 22 23 24 25 |
# File 'lib/sunspot/mongoid.rb', line 19 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 |