Skip to content
Browse files

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

…ved]

Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
  • Loading branch information...
1 parent 3b317b7 commit 7cda0df7f1511a10c515165dbce76e5c68b654ff @fagiani fagiani committed with fcheung Dec 21, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/dbconsole.rb
View
2 railties/lib/commands/dbconsole.rb
@@ -41,7 +41,7 @@ def find_cmd(*commands)
if config['password'] && include_password
args << "--password=#{config['password']}"
- elsif config['password'] && !config['password'].empty?
+ elsif config['password'] && !config['password'].to_s.empty?
args << "-p"
end

0 comments on commit 7cda0df

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