Sha256: 19debf987ba0b917862eef33679ce5e544efec37263664755fe5d2ce05018fff
Contents?: true
Size: 708 Bytes
Versions: 20
Compression:
Stored size: 708 Bytes
Contents
require 'delayed/job' require 'thinking_sphinx/deltas/delayed_delta/delta_job' require 'thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job' require 'thinking_sphinx/deltas/delayed_delta/job' module ThinkingSphinx module Deltas class DelayedDelta < ThinkingSphinx::Deltas::DefaultDelta def index(model, instance = nil) ThinkingSphinx::Deltas::Job.enqueue( ThinkingSphinx::Deltas::DeltaJob.new(delta_index_name(model)) ) Delayed::Job.enqueue( ThinkingSphinx::Deltas::FlagAsDeletedJob.new( core_index_name(model), instance.sphinx_document_id ) ) if instance true end end end end
Version data entries
20 entries across 20 versions & 6 rubygems