Skip to content
This repository
Browse code

Fix script/dbconsole not handling numeric password [#1395 state:resol…

…ved]

Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
  • Loading branch information...
commit 7cda0df7f1511a10c515165dbce76e5c68b654ff 1 parent 3b317b7
Paulo Fagiani authored December 21, 2008 fcheung committed December 21, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  railties/lib/commands/dbconsole.rb
2  railties/lib/commands/dbconsole.rb
@@ -41,7 +41,7 @@ def find_cmd(*commands)
41 41
 
42 42
   if config['password'] && include_password
43 43
     args << "--password=#{config['password']}"
44  
-  elsif config['password'] && !config['password'].empty?
  44
+  elsif config['password'] && !config['password'].to_s.empty?
45 45
     args << "-p"
46 46
   end
47 47
 

0 notes on commit 7cda0df

Please sign in to comment.
Something went wrong with that request. Please try again.