Sha256: 36522a14c42bbefc5c40def7035051477d331ba60c1464d8a20068ff225aa6bb
Contents?: true
Size: 645 Bytes
Versions: 7
Compression:
Stored size: 645 Bytes
Contents
require 'active_support/deprecation' require 'fresh_connection/connection_specification' module FreshConnection class ConnectionFactory def initialize(group, modify_spec = nil) deprecation_warn @spec = FreshConnection::ConnectionSpecification.new(group, modify_spec: modify_spec).spec end def new_connection deprecation_warn ActiveRecord::Base.__send__(@spec.adapter_method, @spec.config) end private def deprecation_warn ActiveSupport::Deprecation.warn( "`FreshConnection::ConnectionFactory` class is deprecated and will removed from version 2.5.0." ) end end end
Version data entries
7 entries across 7 versions & 1 rubygems