Permalink
Browse files

grab executable from rubygems

  • Loading branch information...
1 parent 047b187 commit 17e860c14eea4ea599c93f77252eec37ee0f687d @arunagw arunagw committed Sep 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/app_rails_loader.rb
@@ -2,7 +2,7 @@
module Rails
module AppRailsLoader
- RUBY = File.join(*RbConfig::CONFIG.values_at("bindir", "ruby_install_name")) + RbConfig::CONFIG["EXEEXT"]
+ RUBY = Gem.ruby
EXECUTABLES = ['bin/rails', 'script/rails']
BUNDLER_WARNING = <<EOS
Looks like your app's ./bin/rails is a stub that was generated by Bundler.

0 comments on commit 17e860c

Please sign in to comment.