Module: Sunspot::MongoMapper::Searchable

Defined in:
lib/sunspot/mongo_mapper/searchable.rb

Overview

This module adds Sunspot functionality to MongoMapper models. As well as providing class and instance methods, it optionally adds lifecycle hooks to automatically add and remove models from the Solr index as they are created and destroyed.

Defined Under Namespace

Modules: ActsAsMethods, ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



11
12
13
14
15
# File 'lib/sunspot/mongo_mapper/searchable.rb', line 11

def included(base) #:nodoc:
  base.module_eval do
    extend(ActsAsMethods)
  end
end