Module: Sunspot::Rails::Searchable

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

Overview

This module adds Sunspot functionality to Mongoid 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:



13
14
15
16
17
# File 'lib/sunspot/rails/searchable.rb', line 13

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