Class ActsAsFerret::AbstractIndex
In: lib/index.rb
Parent: Object

base class for local and remote indexes

Methods

Attributes

aaf_configuration  [R] 
logger  [RW] 

Public Class methods

[Source]

    # File lib/index.rb, line 20
20:       def index_proxy_method(*names)
21:         names.each do |name|
22:           define_method name do |*args|
23:             @server.send "index_#{name}""index_#{name}", model_class_name, *args
24:           end
25:         end
26:       end

[Source]

    # File lib/index.rb, line 8
 8:     def initialize(aaf_configuration)
 9:       @aaf_configuration = aaf_configuration
10:       @logger = Logger.new("#{RAILS_ROOT}/log/ferret_index.log")
11:     end

[Source]

    # File lib/index.rb, line 14
14:       def proxy_method(name, *args)
15:         define_method name do |*args|
16:           @server.send name, model_class_name, *args
17:         end
18:       end

[Validate]