Module: ActsAsFerret::WithoutAR

Defined in:
lib/acts_as_ferret/without_ar.rb

Overview

Include this module to use acts_as_ferret with model classes not based on ActiveRecord.

Implement the find_for_id(id) class method in your model class in order to make search work.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



9
10
11
12
13
# File 'lib/acts_as_ferret/without_ar.rb', line 9

def self.included(target)
  target.extend ClassMethods
  target.extend ActsAsFerret::ActMethods
  target.send :include, InstanceMethods
end