Sha256: 95cebeeddf4527c3e1e8f48569a989903d0638593284c865888b405b8412a488

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

require 'elastics'
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

1 entries across 1 versions & 1 rubygems

Version Path
elastics-rails-1.0.4 lib/elastics-rails.rb