module Elasticsearch::Model::Indexing::PrecheckAspect

Public Instance Methods

delete_document(*args) click to toggle source
Calls superclass method
# File lib/elasticsearch/model/indexing_decorator.rb, line 9
def delete_document(*args)
  super if _should_pass_to_es
end
index_document(*args) click to toggle source
Calls superclass method
# File lib/elasticsearch/model/indexing_decorator.rb, line 5
def index_document(*args)
  super if _should_pass_to_es
end
update_document(*args) click to toggle source
Calls superclass method
# File lib/elasticsearch/model/indexing_decorator.rb, line 13
def update_document(*args)
  super if _should_pass_to_es
end
update_document_attributes(*args) click to toggle source
Calls superclass method
# File lib/elasticsearch/model/indexing_decorator.rb, line 17
def update_document_attributes(*args)
  super if _should_pass_to_es
end

Private Instance Methods

_should_pass_to_es() click to toggle source
# File lib/elasticsearch/model/indexing_decorator.rb, line 22
def _should_pass_to_es
  tclz = target.class
  return true unless tclz.instance_variable_defined?(:@_es_condition_block)
  condition_blk = tclz.instance_variable_get :@_es_condition_block
  !condition_blk || condition_blk[self]
end