diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-25 10:01:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-25 10:01:19 -0700 |
commit | d7fc97d3f90c0e30865d32ce202658f03248cacc (patch) | |
tree | 119b915b16af7a61721ed42396f4bc9a691414c0 /railties | |
parent | af29af674ef5a20b17ed9615323aaaf14ed6384f (diff) | |
download | rails-d7fc97d3f90c0e30865d32ce202658f03248cacc.tar.gz rails-d7fc97d3f90c0e30865d32ce202658f03248cacc.tar.bz2 rails-d7fc97d3f90c0e30865d32ce202658f03248cacc.zip |
grab executable from rubygems
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/app_rails_loader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/app_rails_loader.rb b/railties/lib/rails/app_rails_loader.rb index 4a17803f1c..fbb83fa10e 100644 --- a/railties/lib/rails/app_rails_loader.rb +++ b/railties/lib/rails/app_rails_loader.rb @@ -2,7 +2,7 @@ require 'pathname' 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. |