Module: Sunspot::Rails::Searchable
- Defined in:
- 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
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
11 12 13 14 15 |
# File 'lib/sunspot/rails/searchable.rb', line 11 def included(base) #:nodoc: base.module_eval do extend(ActsAsMethods) end end |