Module: ActsAsFerret::RdigAdapter

Defined in:
lib/acts_as_ferret/rdig_adapter.rb

Overview

The RdigAdapter is automatically included into your model if you specify the :rdig options hash in your call to acts_as_ferret. It overrides several methods declared by aaf to retrieve documents with the help of RDig’s http crawler when you call rebuild_index.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Indexer

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



17
18
19
20
21
# File 'lib/acts_as_ferret/rdig_adapter.rb', line 17

def self.included(target)
  target.extend ClassMethods
  target.send :include, InstanceMethods
  target.alias_method_chain :ferret_key, :md5
end