Sha256: e634f04b5bfb8f2e3ef1844963306c42905148eabf3b853aadff882dbfaab677
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
require 'active_record' require 'active_support/core_ext' require 'active_support/dependencies/autoload' module FreshConnection extend ActiveSupport::Autoload autoload :AccessControl autoload :ConnectionManager autoload :SlaveConnectionHandler autoload :Initializer autoload :SlaveConnection class << self attr_writer :connection_manager, :ignore_configure_connection, :retry_limit def connection_manager @connection_manager || ConnectionManager end def ignore_configure_connection? !!@ignore_configure_connection end def retry_limit @retry_limit || 3 end def rails_3? ActiveRecord::VERSION::MAJOR == 3 end def rails_4? ActiveRecord::VERSION::MAJOR == 4 end end end require "fresh_connection/railtie.rb"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fresh_connection-0.2.1 | lib/fresh_connection.rb |
fresh_connection-0.2.0 | lib/fresh_connection.rb |