Sha256: 5399775d6db0c30ee3a50704609b15e43fc575c0a23b9d0f25538ac981f63532
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
require 'active_support' require "fresh_connection" require "ebisu_connection/conf_file" module EbisuConnection class << self attr_writer :env def replica_file=(file) ConfFile.replica_file = file end def slaves_file=(file) ConfFile.slaves_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-2.4.2 | lib/ebisu_connection.rb |
ebisu_connection-2.4.1 | lib/ebisu_connection.rb |