Module: AlgoliaSearch

Extended by:
Configuration
Defined in:
lib/algoliasearch-rails.rb,
lib/algoliasearch/railtie.rb,
lib/algoliasearch/version.rb,
lib/algoliasearch/utilities.rb,
lib/algoliasearch/pagination.rb,
lib/algoliasearch/algolia_job.rb,
lib/algoliasearch/configuration.rb,
lib/algoliasearch/pagination/kaminari.rb,
lib/algoliasearch/pagination/will_paginate.rb

Defined Under Namespace

Modules: ClassMethods, Configuration, InstanceMethods, Pagination, Utilities Classes: AlgoliaJob, BadConfiguration, Engine, IndexSettings, MixedSlavesAndReplicas, NoBlockGiven, NotConfigured, Railtie, SafeIndex

Constant Summary collapse

VERSION =
'2.3.1'

Constants included from Configuration

Configuration::REQUIRED_CONFIGURATION

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Configuration

client, client_opts, client_opts=, configuration, configuration=, default_configuration, initialize, setup_client

Class Attribute Details

.included_inObject (readonly)

Returns the value of attribute included_in.



34
35
36
# File 'lib/algoliasearch-rails.rb', line 34

def included_in
  @included_in
end

Class Method Details

.included(klass) ⇒ Object



36
37
38
39
40
41
42
43
44
45
# File 'lib/algoliasearch-rails.rb', line 36

def included(klass)
  @included_in ||= []
  @included_in << klass
  @included_in.uniq!

  klass.class_eval do
    extend ClassMethods
    include InstanceMethods
  end
end