Skip to content

Commit

Permalink
move require of postgresql adapter patch to postgresql adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbaltazar committed Feb 3, 2022
1 parent b67bc7a commit 0922157
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions lib/apartment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

require_relative 'apartment/log_subscriber'

if defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
require_relative 'apartment/active_record/postgresql_adapter'
end

if ActiveRecord.version.release >= Gem::Version.new('6.0')
require_relative 'apartment/active_record/connection_handling'
end
Expand Down
1 change: 1 addition & 0 deletions lib/apartment/adapters/postgresql_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'apartment/adapters/abstract_adapter'
require 'apartment/active_record/postgresql_adapter'

module Apartment
module Tenant
Expand Down

0 comments on commit 0922157

Please sign in to comment.