Skip to content

Commit

Permalink
Merge pull request #390 from copiousfreetime/bugfix/db-console-found
Browse files Browse the repository at this point in the history
add the ConnectionHandling module
  • Loading branch information
keithdoggett committed Feb 22, 2024
2 parents 86a6b34 + d05adc6 commit 90d5f65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/active_record/connection_adapters/postgis_adapter.rb
Expand Up @@ -24,6 +24,16 @@
# :startdoc:

module ActiveRecord
module ConnectionHandling # :nodoc:
def postgis_adapter_class
ConnectionAdapters::PostGISAdapter
end

def postgis_connection(config)
postgis_adapter_class.new(config)
end
end

module ConnectionAdapters
class PostGISAdapter < PostgreSQLAdapter
ADAPTER_NAME = 'PostGIS'
Expand Down

0 comments on commit 90d5f65

Please sign in to comment.