1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #18049 from yuki3738/fix_rails_db_command_error

Add a code checking about file or not to the rails db command
This commit is contained in:
Rafael Mendonça França 2014-12-16 15:12:21 -02:00
commit efbbb30534

View file

@ -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