Sha256: 7586ad83554cdd0f332bfebdac34873c30a37661bbf6fe04ad1c8add11f5e3f8

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

module WorklingDelta
  class Indexer < ThinkingSphinx::Deltas::DefaultDelta
    def index(model, instance = nil)
      doc_id = instance ? instance.sphinx_document_id : nil
      WorklingDelta::Worker.async_index(:delta_index_name => delta_index_name(model), 
        :document_id => doc_id, :core_index_name => core_index_name(model))
      
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lostboy-workling_delta_indexer-0.1.1.1 lib/workling_delta/indexer.rb