Sha256: d2b24aa2c3b219ee285dbc2b1bdb976053edd4c1bce177b83d2237459d1a12ff
Contents?: true
Size: 425 Bytes
Versions: 6
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true require 'apartment/adapters/abstract_adapter' module Apartment module Adapters 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
6 entries across 6 versions & 1 rubygems