Permalink
Browse files

Removed config[:dbname] from wrong location.

  • Loading branch information...
1 parent a51cac4 commit 22f94fab232fb6ca99e1ab64eae81beac1dce8de @wayneeseguin committed Apr 24, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 22f94fa

Please sign in to comment.