Sha256: b9c9ff342f9f269f2bb639ebc22b0070243c6b1e24d74358a3382b63248bfb44

Contents?: true

Size: 851 Bytes

Versions: 10

Compression:

Stored size: 851 Bytes

Contents

require "rubygems"
require "bundler/setup"
Bundler.setup

require "active_support"
require "active_support/core_ext"
require "active_model"
require "elasticsearch"

module Elasticity
  autoload :Bulk,               "elasticity/bulk"
  autoload :Config,             "elasticity/config"
  autoload :Document,           "elasticity/document"
  autoload :InstrumentedClient, "elasticity/instrumented_client"
  autoload :LogSubscriber,      "elasticity/log_subscriber"
  autoload :MultiSearch,        "elasticity/multi_search"
  autoload :Search,             "elasticity/search"
  autoload :Strategies,         "elasticity/strategies"

  def self.configure
    @config = Config.new
    yield(@config)
  end

  def self.config
    return @config if defined?(@config)
    @config = Config.new
  end
end

if defined?(Rails)
  require "elasticity/railtie"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
es-elasticity-0.3.9 lib/elasticity.rb
es-elasticity-0.3.8 lib/elasticity.rb
es-elasticity-0.3.7 lib/elasticity.rb
es-elasticity-0.3.6 lib/elasticity.rb
es-elasticity-0.3.5 lib/elasticity.rb
es-elasticity-0.3.4 lib/elasticity.rb
es-elasticity-0.3.3 lib/elasticity.rb
es-elasticity-0.3.2 lib/elasticity.rb
es-elasticity-0.3.1 lib/elasticity.rb
es-elasticity-0.3.0 lib/elasticity.rb