Module: Elastic::Railties::QueryExtensions

Included in:
Query
Defined in:
lib/elastic/railties/query_extensions.rb

Instance Method Summary collapse

Instance Method Details

#includes(*_includes) ⇒ Object



3
4
5
6
7
# File 'lib/elastic/railties/query_extensions.rb', line 3

def includes(*_includes)
  with_clone do |config|
    config.middleware_options[:ar_includes] = _includes
  end
end