Module: ActiveRecord::ConnectionHandling

Defined in:
lib/active_record/connection_adapters/elasticsearch_adapter.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#elasticsearch_adapter_classObject



26
27
28
# File 'lib/active_record/connection_adapters/elasticsearch_adapter.rb', line 26

def elasticsearch_adapter_class
  ConnectionAdapters::ElasticsearchAdapter
end

#elasticsearch_connection(config) ⇒ Object



30
31
32
# File 'lib/active_record/connection_adapters/elasticsearch_adapter.rb', line 30

def elasticsearch_connection(config)
  elasticsearch_adapter_class.new(config)
end