]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/roundcube_plugin.rb
lib: replace two PG::Connection.connect with PG::Connection.new.
[mailshears.git] / lib / common / roundcube_plugin.rb
index a4300c4a016bcd8f85d6177edd76f1ee51378426..b66c9f603cf2e4c665de427d33f6210108db3b1f 100644 (file)
@@ -47,7 +47,7 @@ module RoundcubePlugin
   def list_users()
     usernames = []
 
-    connection = PG::Connection.connect(@db_hash)
+    connection = PG::Connection.new(@db_hash)
 
     sql_query = 'SELECT username FROM users;'