Sha256: e1e3a5a76bcae6606f5eb358ef4cae046de23355678204d6bcad165a95f4a9f4

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'elastics-client'
require 'elastics-models'
require 'rails'
require 'elastics/result/rails_helper'
require 'elastics/rails/helper'
require 'elastics/rails/logger'

Elastics::LIB_PATHS << File.dirname(__FILE__)

if ::Rails.respond_to?(:version) && ::Rails.version.to_i >= 3
  require 'elastics/rails/engine'
else
  Elastics::Conf.configure do |c|
    c.config_file       = "#{RAILS_ROOT}/config/elastics.yml"
    c.elastics_dir       = "#{RAILS_ROOT}app/elastics"
    c.logger            = Logger.new(STDOUT)
    c.logger.level      = ::Logger::DEBUG if RAILS_ENV == 'development'
    c.result_extenders |= [ Elastics::Result::RailsHelper ]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elastics-rails-1.0.7 lib/elastics-rails.rb
elastics-rails-1.0.6 lib/elastics-rails.rb
elastics-rails-1.0.5 lib/elastics-rails.rb