Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7cda0df7f1511a10c515165dbce76e5c68b654ff 1 parent 3b317b7
@fagiani fagiani authored fcheung committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.