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