summaryrefslogtreecommitdiff
path: root/bin/rails
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rails')
-rwxr-xr-xbin/rails5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/rails b/bin/rails
index 7feb6a30e69..215a2ea01f0 100755
--- a/bin/rails
+++ b/bin/rails
@@ -3,6 +3,5 @@ begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
-APP_PATH = File.expand_path('../../config/application', __FILE__)
-require_relative '../config/boot'
-require 'rails/commands'
+require 'bundler/setup'
+load Gem.bin_path('rails', 'rails')