Sha256: b97bc480b5d181adb548dbcdd3c72f07d84400c7915df391e23cb438aa16855c

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require 'active_support'
require "fresh_connection"
require "ebisu_connection/config"

module EbisuConnection
  class << self
    attr_writer :env

    def replica_file=(file)
      Config.replica_file = file
    end

    def env
      @env ||= defined?(Rails) && Rails.env || ENV["RAILS_ENV"] || ENV["RACK_ENV"]
    end
  end
end

require "ebisu_connection/connection_manager"
FreshConnection.connection_manager = EbisuConnection::ConnectionManager

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ebisu_connection-3.1.0 lib/ebisu_connection.rb
ebisu_connection-3.0.0 lib/ebisu_connection.rb