Skip to content
Browse files

grab executable from rubygems

  • Loading branch information...
1 parent af29af6 commit d7fc97d3f90c0e30865d32ce202658f03248cacc @tenderlove tenderlove committed Jul 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/app_rails_loader.rb
View
2 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 d7fc97d

Please sign in to comment.
Something went wrong with that request. Please try again.