Permalink
Browse files

Merge pull request #13828 from bronzle/apploader-should-check-for-file

app_rails_loader.rb should check if bin/rails is a File before calling F...
  • Loading branch information...
2 parents 8efd5fe + cf6c00d commit f5c3531ade409f98328e8e05ed5a0d9a8514d308 @guilleiguaran guilleiguaran committed Jan 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/app_rails_loader.rb
@@ -55,7 +55,7 @@ def self.exec_app_rails
end
def self.find_executable
- EXECUTABLES.find { |exe| File.exist?(exe) }
+ EXECUTABLES.find { |exe| File.file?(exe) }
end
end
end

0 comments on commit f5c3531

Please sign in to comment.