module Mongoid::Elasticsearch::Callbacks::ClassMethods
Public Instance Methods
without_es_update!( ) { || ... }
click to toggle source
# File lib/mongoid/elasticsearch/callbacks.rb, line 35 def without_es_update!( &block ) skip_callback( :save, :after, :update_es_index ) skip_callback( :destroy, :after, :update_es_index ) result = yield set_callback( :save, :after, :update_es_index ) set_callback( :destroy, :after, :update_es_index ) result end