Module: Sunspot::Rails::Searchable

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

Overview

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

+ (Object) included(base)

:nodoc:



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

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