Sha256: 2af3910039c47eda5dbe458cb821a3299c7d55553c01873cef7091115ea0d441
Contents?: true
Size: 452 Bytes
Versions: 12
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true require 'apartment/adapters/abstract_adapter' module Apartment module Adapters # JDBC Abstract adapter class AbstractJDBCAdapter < AbstractAdapter private def multi_tenantify_with_tenant_db_name(config, tenant) config[:url] = "#{config[:url].gsub(%r{(\S+)/.+$}, '\1')}/#{environmentify(tenant)}" end def rescue_from ActiveRecord::JDBCError end end end end
Version data entries
12 entries across 12 versions & 3 rubygems