Class: ActiverecordReindex::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord_reindex/adapter.rb

Direct Known Subclasses

AsyncAdapter, SyncAdapter

Class Method Summary collapse

Class Method Details

._check_elasticsearch_connection(klass) ⇒ Object

check if record of this class can be reindexed check if klass inherits from elasticsearch-model base class and have method required for reindexing



15
16
17
# File 'lib/activerecord_reindex/adapter.rb', line 15

def self._check_elasticsearch_connection(klass)
  klass < Elasticsearch::Model
end