Module: ActiverecordReindex::ReflectionReindex

Included in:
ElasticsearchProxy, Elasticsearch::Model::Indexing::InstanceMethods
Defined in:
lib/activerecord_reindex/reflection_reindex.rb

Instance Method Summary collapse

Instance Method Details

#update_document_hook(request_record) ⇒ Object



7
8
9
10
# File 'lib/activerecord_reindex/reflection_reindex.rb', line 7

def update_document_hook(request_record)
  return unless _active_record_model?(self.class)
  _reindex_reflections(self.class, request_record)
end