Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed config[:dbname] from wrong location.

  • Loading branch information...
commit 22f94fab232fb6ca99e1ab64eae81beac1dce8de 1 parent a51cac4
@wayneeseguin authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/psql-cm/database.rb
View
3  lib/psql-cm/database.rb
@@ -85,8 +85,7 @@ def configure!
sslmode = query.detect { |k| k.match /sslmode=/ }.to_s.sub(/.*=/,'')
database = uri.path.split('/').first.to_s
- database = @config[:dbname] || 'postgres' if database.empty?
-
+ database = 'postgres' if database.empty?
unless @config.databases.detect { |name| name == database }
@config.databases << database
Please sign in to comment.
Something went wrong with that request. Please try again.