Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

script/rails could never be from bundler

  • Loading branch information...
commit b77bbab25ed90ecccca1f5c23feb641ce1f9ef51 1 parent c6fd1fc
André Arko indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/app_rails_loader.rb
2  railties/lib/rails/app_rails_loader.rb
@@ -20,7 +20,7 @@ def self.exec_app_rails
# the application is generated in the original working directory.
exec_app_rails unless cwd == Dir.pwd
- else
+ elsif exe.match(%r(bin/rails$))
# this is a Bundler binstub, so we load the app ourselves
Object.const_set(:APP_PATH, File.expand_path('config/application', Dir.pwd))
require File.expand_path('../boot', APP_PATH)
Please sign in to comment.
Something went wrong with that request. Please try again.