Module: ROM::Elasticsearch::Plugins::Relation::QueryDSL

Defined in:
lib/rom/elasticsearch/plugins/relation/query_dsl.rb

Overview

Relation plugin which adds query DSL from elasticsearch-dsl gem

Defined Under Namespace

Modules: InstanceMethods Classes: Builder

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
18
19
# File 'lib/rom/elasticsearch/plugins/relation/query_dsl.rb', line 15

def self.included(klass)
  super
  klass.include(InstanceMethods)
  klass.option :query_builder, default: -> { Builder.new(self) }
end