Permalink
Browse files

script/rails could never be from bundler

  • Loading branch information...
1 parent c6fd1fc commit b77bbab25ed90ecccca1f5c23feb641ce1f9ef51 @indirect indirect committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
end
- 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)

0 comments on commit b77bbab

Please sign in to comment.