Permalink
Browse files

pass in username database configuration for em_mysqlplus adapter

  • Loading branch information...
1 parent f9f93dc commit 43c6d09d1010b59204bd6ad2edb4eaca3c23689f Jeremy Suriel committed with Jul 7, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/active_record/connection_adapters/em_mysqlplus_adapter.rb
@@ -18,6 +18,7 @@ def connect
@connection = EventMachine::MySQL.new({
:host => @hostname,
:port => @port,
+ :user => @config[:username],
:database => @config[:database],
:password => @config[:password],
:socket => @config[:socket]

0 comments on commit 43c6d09

Please sign in to comment.