diff options
author | yuki3738 <y.minamiya@gmail.com> | 2014-12-16 19:28:00 +0900 |
---|---|---|
committer | yuki3738 <y.minamiya@gmail.com> | 2014-12-16 19:28:00 +0900 |
commit | 17bb531f82b33a8c6365f73f7577ee1f3a37ef1a (patch) | |
tree | 0ac034b9f8978635e61d1499f8e45df2d014f768 /railties | |
parent | d95a58c76882eb09ce29796730ef43688d5868cf (diff) | |
download | rails-17bb531f82b33a8c6365f73f7577ee1f3a37ef1a.tar.gz rails-17bb531f82b33a8c6365f73f7577ee1f3a37ef1a.tar.bz2 rails-17bb531f82b33a8c6365f73f7577ee1f3a37ef1a.zip |
Add a code checking about file or not to the rails db command
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/dbconsole.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb index 9014560611..0d8b3de0eb 100644 --- a/railties/lib/rails/commands/dbconsole.rb +++ b/railties/lib/rails/commands/dbconsole.rb @@ -178,7 +178,7 @@ module Rails found = commands.detect do |cmd| dirs_on_path.detect do |path| full_path_command = File.join(path, cmd) - File.executable? full_path_command + File.file?(full_path_command) && File.executable?(full_path_command) end end |