lib/active_triples/elasticsearch/background.rb
def enqueue(operation)
        # Force autosave of related documents before queueing for indexing or updating
        # methods.select { |i| i[/autosave_documents/] }.each { |m| send m } unless :delete == operation

        Indexer.set(queue: self.class.name.underscore.pluralize).perform_later(operation.to_s, self)
      end
##
# Queue an index operation for asynchronous execution
#
# @param [Symbol] operation the kind of operation to perform: index, delete, update
# @return [void]
Queue an index operation for asynchronous execution
Queue an index operation for asynchronous execution
def enqueue(operation)
        Indexer.set(queue: self.class.name.underscore.pluralize).perform_later(operation.to_s, self)
      end
def enqueue ( operation ) Indexer . set ( queue : self . class . name . underscore . pluralize ) . perform_later ( operation . to_s , self ) end
Queue an index operation for asynchronous execution
Queue an index operation for asynchronous execution
# Force autosave of related documents before queueing for indexing or updating # methods.select { |i| i[/autosave_documents/] }.each { |m| send m } unless :delete == operation
None
void
operation
operation the kind of operation to perform: index, delete, update
operation the kind of operation to perform : index delete update